In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Mon, 15 Jul 2002, John Porter wrote:
> Sean O'Rourke wrote:
> > NOTE: this may be part of the monster-patch to fix the over-agressive
> > string GC (814), but it's much more palatable in this form.
> > PerlInt's
> > cmp() method was backwards, and would truncate floats on the other
> > side of the comparison.
> > This patch always uses floating-point, and makes the
> > direction consistent with the PDD 2.
>
> Um, I don't think it's right to *always* do the comparison
> floating point.  Specifically, if both operands are ints,
> the comparison should be int.

I thought about this, but all it buys you is a few bits of precision when
your ints and floats are both 64-bit, and slower comparisons all the time.
IMHO it's a wash, so I did it this way.

/s

Reply via email to