From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 04-Aug-2010 21:08 UTC |
XDCscript - Struct-Object
A typed structure object
An Struct is an aggregate that comprises fixed set of typed values declared in some XDCspec file. Structs can be dynamically created in the meta-domain via the JavaScript new operator.
example.xs | |
| var Log = xdc.runtime('xdc.runtime.Log'); var event = new Log.EventDesc(); // create default EventDesc struct var hello = new Log.EventDesc({msg: "hello"}); // create an EventDesc with msg set to "hello" |
[printable version] [offline version] | offline version generated on 04-Aug-2010 21:08 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved