From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - Capsule-Body
Contents of a capsule
Contents |
Description
Capsule files contain top-level definitions of public and private variables/functions. Capsules may also contain top-level statements that are executed exactly once -- on first call to loadCapsule() naming this file.
Syntax
Capsule files may contain arbitrary JavaScript and XDCscript statements. However, as a coding convention, functions and variables that are intended to not be accessed directly should have a leading underscore in their names.
var publicVar = var _privateVar = function publicFxn( ... ) { ... } function _privateFxn( ... ) { ... } stmt ...
See also
XDCscript - Capsule-Object | under construction |
XDCscript - xdc.loadCapsule | Load specified capsule |
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved