TADS 3 Type Identifier Codes

Certain functions return integer values to identify datatypes of values.  For example, these type codes are returned by the dataType() function in the "tads-gen" function set, and by the propDefined() method in the Object intrinsic class.

 

The type names shown below are macros that are defined in the system header file "systype.h".

 

TypeNil – nil

TypeTrue – true

TypeObject – object

TypeProp – property pointer

TypeInt – integer

TypeSString – single-quoted string

TypeDString – double-quoted string

TypeList – list

TypeCode – executable code (i.e., the property is a method)

TypeFuncPtr – function pointer

TypeNativeCode – native code (an intrinsic class method)

TypeEnum - enumerator