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

Re: SRFI-77 with more than one flonum representation



Alan Watson scripsit:

> I think that the flonum-specific parts of SRFI-77 has some issues when 
> there is more than one flonum representation[*]. For example, consider 
> an implementation with IEEE 754 single-precision and double-precision 
> flonums.

I read SRFI 77 as saying that a conforming Scheme system can have
more than one representation of inexact reals, but that one of these
must be labeled "flonums" for the purposes of the standard, and
the others are something else.  The procedure "real->flonum" coerces
an arbitrary real to the chosen case so that the flonum-specific
procedures can be invoked.

-- 
John Cowan  cowan@xxxxxxxx  http://ccil.org/~cowan
Linguistics is arguably the most hotly contested property in the academic
realm. It is soaked with the blood of poets, theologians, philosophers,
philologists, psychologists, biologists and neurologists, along with
whatever blood can be got out of grammarians. - Russ Rymer