[MLton-devel] Real.fromLargeInt
Matthew Fluet
fluet@CS.Cornell.EDU
Thu, 24 Oct 2002 16:06:01 -0400 (EDT)
> > Then the test file compiles but raises the Overflow exception. Opening
> > IEEEReal instead of adding and replacing the out-of-scope
> > constructors/variables makes the exception go away. Can anyone else
> > duplicate this behavior?
>
> Yes. The problem is that toLargeInt also relies on the
> IEEEReal.float_class constructors being in scope. If they are not,
> INF is a variable, matches anything, and causes Overflow to be
> raised.
Duh! Thanks. That was driving me a little nuts.
-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
_______________________________________________
MLton-devel mailing list
MLton-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlton-devel