No subject

Henry Cejtin henry@sourcelight.com
Fri, 25 May 2001 19:26:31 -0500


What,  if  any, is the official way to convert a Word32.word to an Int32.int,
with the result being negative it the most significant bit of the argument is
set?   I  know that in MLton I can just do Word32.toIntX because int's are 32
bits.  I know that in SML/NJ I can use Word32.toLargeIntX, but MLton  defines
LargeInt to be IntInf.  I like this, but this forces me to go to IntInf.int's
when there clearly is no need for it.

Is there any portable solution that isn't going to be very slow?