UNSAFE_OBJECT
signature
signature UNSAFE_OBJECT
type object
datatype representation
= Unboxed
| Real
| Pair
| Record
| PolyArray
| ByteVector
| ByteArray
| RealArray
| Susp
| WeakPtr
val toObject : 'a -> object
val boxed : object -> bool
val unboxed : object -> bool
val rep : object -> representation
exception Representation
val toTuple : object -> object vector
val toString : object -> string
val toRef : object -> object ref
val toArray : object -> object array
val toExn : object -> exn
val toReal : object -> real
val toInt : object -> int
val toInt32 : object -> Int32.int
val toWord : object -> Word.word
val toWord8 : object -> Word8.word
val toWord32 : object -> Word32.word
type object
datatype representation
toObject a
boxed ob
unboxed ob
rep ob
exception Representation
toTuple ob
toString ob
toRef ob
ref
or an array of length 1, view it as a ref
, otherwise raise Representation.
toArray ob
array
, otherwise raise Representation.
toExn ob
exn
, otherwise raise Representation.
toReal ob
real
, otherwise raise Representation.
toInt ob
int
, otherwise raise Representation.
toInt32 ob
Int32.int
, otherwise raise Representation.
toWord ob
word
, otherwise raise Representation.
toWord8 ob
Word8.word
, otherwise raise Representation.
toWord32 ob
Word32.word
, otherwise raise Representation.
Last Modified October 28, 1997
Comments to sml-nj@research.bell-labs.com
Copyright © 1998 Bell Labs, Lucent Technologies