[MLton-devel] Real.fromLargeInt

Stephen Weeks MLton@mlton.org
Thu, 24 Oct 2002 12:19:00 -0700


> This is very weird.  I merged the changes in mlton/atoms/prim.fun,
> basis-library/real/real.{sig,sml} from on-20021018-prof-branch into the
> HEAD branch, followed by a make nj-mlton.
...
> 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.


-------------------------------------------------------
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