statically inserting an instance handle into another module's mod state [message #383146] |
Wed, 29 July 2009 18:24  |
Eclipse User |
|
|
|
Champs--
I'd like to find out whether RTSC permits the following scenario:
ModA's module state contains an array of IModB handles. Statically
creating an instance of ModB1 which inherits from IModB should add the
instance's handle to ModA's handle array.
From ModA.xdc:
struct Module_State {
IModB.Handle handles[];
};
I'm not sure whether this is permissible because we don't have access to a
static handle until we are in ModB1's instance$static$init. By this time,
ModA's module$static$init has already been evaluated (per the order of
evaluation chart at
http://rtsc.eclipse.org/docs-tip/Creating_Configurable_Conte nt). Hence,
the module state has been sealed and we cannot insert the handle to the
ModB1 instance into ModA's module state.
Thanks,
Shreyas
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03631 seconds