[MLton] Re: [MLton-commit] r7082

Matthew Fluet fluet at tti-c.org
Tue Apr 14 19:27:02 PDT 2009


On Tue, 14 Apr 2009, adam at mlton.org wrote:
> Change IEEEReal.setRoundingMode to throw exception if setting the mode fails
>
> As per
> http://www.standardml.org/Basis/ieee-float.html#SIG:IEEE_REAL.setRoundingMode:VAL
> IEEEReal.setRoundingMode should probably throw an exception if
> the hardware doesn't support it. This is common on ARM, which is only
> guaranteed to support the default mode.
>
> This throws PosixError.inval, as suggested by
> http://mlton.org/pipermail/mlton/2009-April/030535.html
>
> The MLB file had to be reordered a bit to define the exception
> to be raised. ./bin/regression shows no regressions on x86_64.

I'm pleased to see that the <src>/basis-library/build/sources.mlb didn't 
need extensive reorganization.  I had seen that posix/error.{sig,sml} was 
defined after real/IEEE-real.{sig,sml} and was afraid that there might be 
some non-trivial dependencies.




More information about the MLton mailing list