From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 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 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference