[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Some comments relating to ICFP contest
"Alan Watson" <a.watson@xxxxxxxxxxxxxxxx> 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