tads.hfile | source file |
Classes Summary | Functions Summary Details | Macros Summary Details | Enums Summary Details | Templates Summary Details |
This file includes all of the standard TADS system headers, so programs can include this header alone rather than having to include all of the separate headers individually.
_tads_io_say
breakLoop
perInstance
TADS_IO_HEADER
_tads_io_say (str) | tads.h[29] |
tadsSay(str)
breakLoop | tads.h[58] |
throw BreakLoopSignal
perInstance (expr) | tads.h[81] |
(self.(targetprop) = (expr))
class MyClass: MySuperClass
prop1 = perInstance(new SubObject())
;
Now, for each instance of MyClass, prop1 will be set to a separate instance of SubObject.
Note that the per-instance property value is set "on demand" in each instance. This means that a particular instance's copy of the property will be set when the property is first evaluated. Note in particular that the value won't necessary be computed at compile time or during pre-initialization, because the value for a particular instance won't be calculated until the property is first used for a that instance.
TADS_IO_HEADER | tads.h[26] |
"tadsio.h"
We define defaults for these if they aren't otherwise defined. To compile library files with an alternative set of I/O intrinsics, define these symbols in the compiler (for example, by using the -D command-line option with t3make).
(none)