Type:
type: object -> string
Call syntax:
type(anObject)
Description:
The function type returns the type of its argument as
a character string. The result is one of the following:
"boolean",
"integer",
"real",
"string",
"sequence",
"segment",
"list",
"package",
"function",
"internal function".
Macros and blocks are treated as subclasses of
function here;
for references the type of the dereferenced object is returned.
Example:
> type(1)
Result= "integer"
> r := 1/2; type(r)
Result= "real"
> type(exit)
Result= "internal function"
See also: exists.