![]() |
symbolToTypeCode
|
The symbolToTypeCode function returns the Integer type code of the type name specified.
Usage The symbolToTypeCode function returns the Integer type code of the type name specified.
The AIS system stores information in Words which contain a declared type.
For the Lisp assembler programmer, the symbolToTypeCode function allows the access and reference of declared types in Words.
For instance, the following code uses the symbolToTypeCode function to check that the argument is really of the specified type.
(defun foo(Number:x)
regs:(n)
(vmregLoadDeclType x n)
(if (<> (symbolToTypeCode Number:) n) then (error "Bad type passed as argument"))
true)
(setq typeCode (symbolToTypeCode typeName)) typeCode
Expression:
Arguments
Name
Type
Description Argument: typeName String Symbol Text
The symbolic name of the type whose Integer code is to be returned. Argument: typeCode Integer
Returns the typeCode, as an Integer, of the symbolic type name specified.
Returns:
Here are a number of links to Lambda coding examples which contain this instruction in various use cases.
Here are the links to the data types of the function arguments.
String | Symbol | Text |
Here are also a number of links to functions having arguments with any of these data types.
![]() |
Analytic Information Server (AIS)AIS Component Systems
|