IntrinsicClassclass
The IntrinsicClass intrinsic class. Objects of this type represent the intrinsic classes themselves.
intrinsic class
IntrinsicClass
:
Object
Superclass Tree (in declaration order)
IntrinsicClass
Object
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
(none)
Summary of Methods
Inherited from Object
:
getPropList
getPropParams
getSuperclassList
isClass
isTransient
ofKind
propDefined
propInherited
propType
valToSymbol
Properties
(none)
Methods
isIntrinsicClass (obj)
Class method: is the given value an IntrinsicClass object? This returns true if so, nil if not.
It’s not possible to determine if an object is an IntrinsicClass object using x.ofKind(IntrinsicClass) or via x.getSuperclassList(). This is because those methods traverse the nominal class tree: [1,2,3] is a List, and List is an Object. However, List and Object themselves are represented by IntrinsicClass instances, and it’s occasionally useful to know if you’re dealing with such an object. That’s where this method comes in.
This method returns nil for instances of an intrinsic class. For example, isIntrinsicClass([1,2,3]) returns nil, because [1,2,3] is a List instance. If you get the superclass list for [1,2,3], though, that will be [List], and isIntrinsicClass(List) returns true.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3