[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.dsdp.rtsc] How to access a siblings config params?
|
- From: Ramsey Harris <ramsey@xxxxxx>
- Date: Mon, 15 Jun 2009 11:27:41 -0700
- Newsgroups: eclipse.dsdp.rtsc
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Champs,
I am trying to access a module's config param from the module$use() function of another module in the same package. I'm currently using the following:
function module$use()
{
var Settings = this.$package.Settings;
if (Settings.ipc...) {
:
}
}
But in the documentation for the XDCscript Language Summary it does not recommend using this method.
pkg.ModName Module
A particular module contained within this package, unless ModName matches a name in the xdc.IPackage interface -- in this case the xdc.IPackage interface value is returned. Because of this ambiguity, this method of referencing a package's modules is deprecated.
What is the recommended way to access a siblings config params? Should I be using the following:
var Settings = xdc.useModule(this.$package.$name + '.Settings');
Or is there a better way?
Thanks
~ Ramsey