Re: Some comments relating to ICFP contest
Michael Sperber 26 Jul 2006 09:02 UTC
"Alan Watson" <xxxxxx@astrosmo.unam.mx> writes:
> Consider data types with 32 bits and 64 bits but which are not
> numbers in the sense that the generic arithmetic operations cannot
> be used with them without an explicit conversion. Appropriate type-
> specific arithmetic and logical operations could be defined for
> these types. This would not be especially difficult to implement in
> a well-designed Scheme.
Yes, and SRFI 77 gives you the machinery to implement that. (In fact,
the reference implementation does precisely that for the fixnums.)
But it's a whole different ballgame from the "unified" number system
of SRFI 77 (in the sense that fixnums are exact integers and flonums
are inexact reals).
--
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla