From: pjb@... (Pascal J. Bourguignon) Date: 2009-04-29T08:20:03+09:00 Subject: Re: Detecting -0.0 Gary Wright writes: > [...] > A quick look at the IEEE format suggests that there are (2^51 - 1) bit > patterns that are all considered NaN (not a number). > > Seems like it might be possible to encode Ruby references in there. > > Does anyone know of a language implementation that tags references in > that way? Some specific NaN are produced by arithmetic operations. Does IEEE forbid a FP unit to generate any NaN for some operations? It would seem to me to be dangerous to be able to produce random references from arithmetic operations... -- __Pascal Bourguignon__