[Top][All Lists]

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

Re: ratio implementation

From: Rob Browning
Subject: Re: ratio implementation
Date: Fri, 17 Oct 2003 10:14:55 -0500
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)

Marius Vollmer <address@hidden> writes:

>> I wasn't even sure whether you wanted inexact->exact to
>> be changed -- I left the old code in place.
> Yes, it needs to be changed.  People who have assumed that
> inexact->exact always returns an integer need to think again (I'm
> afraid I'm one of them...).

Yep, I'm sure there are plenty of people in that situation.  I suspect
it's been used heavily in places where a (C) function require an
integer argument, i.e. (foo (inexact->exact (round x))).  Though as
long as (inexact->exact (round x)) is guaranteed to return an integer,
perhaps that's sufficient.

Rob Browning
rlb and; previously
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4

reply via email to

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