TadsObjectclass | systype.h[242], debug.t[337], signals.t[150] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
Modified in debug.t[337]:
Provide TadsObject with an objToString() method so that the EVALUATE command can display some kind of name of the object via the toString() function
Modified in signals.t[150]:
MODIFICATIONS TO TadsObject for SIGNALS EXTENSION
Add handling for emiting, handling and dispatching signals.
intrinsic class
TadsObject : Object
TadsObject
Object
createClone
createInstance
createTransientInstance
dispatchSignal
emit
getMethod
handle
objToString
setMethod
setSuperclassList
Inherited from Object
:
callInherited
createIterator
createLiveIterator
forEach
getPropList
getPropParams
getSuperclassList
isClass
isTransient
mapAll
ofKind
propDefined
propInherited
propType
valToSymbol
createClone ( ) | systype.h[260] |
Note that the clone is a "shallow" copy, which means that any objects it references are not themselves cloned.
createInstance (...) | systype.h[250] |
createTransientInstance (...) | systype.h[267] |
dispatchSignal (sender, signal) | signals.t[177] |
[SIGNALS EXTENSION]
emit (signal, [args]) | signals.t[152] |
getMethod (prop) | systype.h[330] |
The returned function pointer can be called like an ordinary function, but such a call will have no 'self' value, so the disembodied method won't be able to refer to properties or methods of 'self'. The main use of this method is to get a method of one object to assign as a method of another object using setMethod().
handle (sender, signal) | signals.t[164] |
objToString ( ) | debug.t[338] |
setMethod (prop, func) | systype.h[341] |
The function can be an ordinary named function, or a method pointer retrieved from this object or from another object with getMethod(). Anonymous functions are NOT allowed here.
setSuperclassList (scList) | systype.h[317] |