Overview  Index  Help 
Standard ML Basis Library

Object


structure Object :> UNSAFE_OBJECT =
struct
  type object = Core.Assembly.object
  datatype representation =
           Unboxed
         | Word32
         | Real
         | Pair
         | Record
         | Ref
         | PolyVector
         | PolyArray
         | ByteVector
         | ByteArray
         | RealArray
         | Susp
         | WeakPtr
  exception Representation
  val toObject : 'a -> object
  val mkTuple : object list -> object
  val boxed : object -> bool
  val unboxed : object -> bool
  val rep : object -> representation
  val length : object -> int
  val nth : object * int -> object
  val toTuple : object -> object list
  val toString : object -> string
  val toRef : object -> object ref
  val toArray : object -> object array
  val toRealArray : object -> Real64Array.array
  val toByteArray : object -> Word8Array.array
  val toVector : object -> object vector
  val toByteVector : object -> Word8Vector.vector
  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
end

 
Type detail

object

type object = Core.Assembly.object

 
Datatype detail

representation

datatype representation =
         Unboxed
       | Word32
       | Real
       | Pair
       | Record
       | Ref
       | PolyVector
       | PolyArray
       | ByteVector
       | ByteArray
       | RealArray
       | Susp
       | WeakPtr

 
DataConstructor detail

Unboxed

constructor Unboxed : representation


Word32

constructor Word32 : representation


Real

constructor Real : representation


Pair

constructor Pair : representation


Record

constructor Record : representation


Ref

constructor Ref : representation


PolyVector

constructor PolyVector : representation


PolyArray

constructor PolyArray : representation


ByteVector

constructor ByteVector : representation


ByteArray

constructor ByteArray : representation


RealArray

constructor RealArray : representation


Susp

constructor Susp : representation


WeakPtr

constructor WeakPtr : representation

 
Value detail

toObject

val toObject : 'a -> object


mkTuple

val mkTuple : object list -> object


boxed

val boxed : object -> bool


unboxed

val unboxed : object -> bool


rep

val rep : object -> representation


length

val length : object -> int


nth

val nth : object * int -> object


toTuple

val toTuple : object -> object list


toString

val toString : object -> string


toRef

val toRef : object -> object ref


toArray

val toArray : object -> object array


toRealArray

val toRealArray : object -> Real64Array.array


toByteArray

val toByteArray : object -> Word8Array.array


toVector

val toVector : object -> object vector


toByteVector

val toByteVector : object -> Word8Vector.vector


toExn

val toExn : object -> exn


toReal

val toReal : object -> real


toInt

val toInt : object -> int


toInt32

val toInt32 : object -> Int32.int


toWord

val toWord : object -> Word.word


toWord8

val toWord8 : object -> Word8.word


toWord32

val toWord32 : object -> Word32.word

 
Exception detail

Representation

exception Representation


Overview  Index  Help 
Standard ML Basis Library

This document may be distributed freely over the internet as long as the copyright notice and license terms below are prominently displayed within every machine-readable copy.

Copyright © 2003 AT&T and Lucent Technologies. All rights reserved.

Permission is granted for internet users to make one paper copy for their own personal use. Further hardcopy reproduction is strictly prohibited. Permission to distribute the HTML document electronically on any medium other than the internet must be requested from the copyright holders by contacting the editors. Printed versions of the SML Basis Manual are available from Cambridge University Press. To order, please visit www.cup.org (North America) or www.cup.cam.ac.uk (outside North America).