From RTSC-Pedia
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - Module-Object.$objects
An array of embedded instance objects managed by this module
Contents |
Synopsis
| «Mod».$objects |
where «Mod» is a module object.
Description
The $objects property of a module object is an array of all embedded instance objects. Embedded objects are initialized via «Mod».construct() during the creation of some other type of instance object.
In XDCscript, embedded objects inherit from instances without extending them. This is done to ensure that construct is always passed an embedded instance rather than an already created instance. At the same time, embedded objects behave like ordinary instance objects. There are some subtle differences, however.
Although is is possible to assign names to both embedded objects and ordinary instances in XDCscript, these names are not stored on the target for embedded objects and are, therefore, not available at runtime. However, embedded object names can be used by code that runs in the meta domain.
See also
XDCscript - Module-Object.construct | under construction |
XDCscript - Instance-Object.Config-Name | under construction |
XDCscript - Module-Object.$instances | An array of instance objects managed by this module |
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |