[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fenfire-dev] Re: [Fencommits] libvob: start work on interfaces for

From: Tuomas J. Lukka
Subject: Re: [Fenfire-dev] Re: [Fencommits] libvob: start work on interfaces for the new lob system
Date: Mon, 07 Mar 2005 10:55:45 +0200
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

This is very close to how TeX works, by the way. Except that it also has three "powers" of infinity, for even greater power. See "hfil", "hfill", "hfilll".


Matti Katila wrote:

On Mon, 7 Mar 2005, Benja Fallenstein wrote:
+public final class SizeRequest {
+    /** "Infinity". Can be used as the maximum size request of lobs
+     *  that can be used at arbitrarily large sizes.
+     *  <p>
+     *  Float.POSITIVE_INFINITY is not used so that we can play a trick:
+     *  if we want to distribute two thirds of the available space
+     *  to one component and one third to another, we can use 2*INF
+     *  as the size request of one and 1*INF as the size request of the other.
+     */
+    float INF = (float)Math.pow(2, 1024);

Nice, you have just redefined infinity to non-infinity ;)


fenfire-dev mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]