[Openmcl-devel] Infinity and NaN

Liam Healy lnp at healy.washington.dc.us
Mon Jul 19 12:48:15 PDT 2010


On Mon, Jul 19, 2010 at 3:34 PM, Tim Bradshaw <tfb at tfeb.org> wrote:
> On 19 Jul 2010, at 17:35, Liam Healy wrote:
>
>>
>> I'm not sure where this is coming from, nor why taking the log
>> of 1.0 should be a problem.
>
> What happens if you change it to generate the NaN at load-time?  I'm
> wondering if it is because you can't dump NaNs into FASL files, or perhaps
> read them from FASL files.
>

Do you mean
(defconstant +nan+
  (load-time-value
   (ignore-errors
     (cffi:foreign-funcall "gsl_nan" :double))))
?
This fails the same way.

Liam



More information about the Openmcl-devel mailing list