Built-in Coercion Handlers
The following is a table describing the various coercions that the
Original Desired
descriptor type descriptor type Description
typeChar typeInteger Any string that is a valid
typeLongInteger representation of a number
typeSMInt can be coerced into an
typeSMFloat equivalent numeric value.
typeShortInteger
typeLongFloat
typeShortFloat
typeExtended
typeComp
typeMagnitude
typeInteger typeChar Any numeric descriptor type
typeLongInteger [TOKEN:25441]n be coerced into
typeSMInt [TOKEN:29800]e equivalent text string.
typeSMFloat
typeShortInteger
typeLongFloat
typeShortFloat
typeExtended
typeComp
typeMagnitude
typeInteger typeInteger Any numeric descriptor type
typeLongInteger typeLongInteger can be coerced into any other
typeSMInt typeSMInt numeric descriptor type.
typeSMFloat typeSMFloat
typeShortInteger typeShortInteger
typeLongFloat typeLongFloat
typeShortFloat typeShortFloat
typeExtended typeExtended
typeComp typeComp
typeMagnitude typeMagnitude
typeTrue typeBoolean The result is TRUE. typeFalse typeBoolean The result is FALSE. typeEnumerated typeBoolean The enumerated value 'true'
TRUE. The enumerated value becomes the enumerated
enumerated value 'true'.
typeShortInteger typeBoolean A value of 1 becomes the
typeBoolean typeShortInteger A value of FALSE becomes 0. a value of TRUE becomes 1. typeAlias typeFSS An alias record is coerced into a file system
specification record.
typeAppleEvent typeAppParameters An Apple event is coerced into
a list of application
parameters for the
any descriptor type typeAEList A descriptor record is coerced into a descriptor
list with a single item.
a single descriptor record is
coerced into a descriptor
record.