How to access instance field of module? [message #541385] |
Sun, 20 June 2010 19:05  |
Tomasz  Messages: 5 Registered: March 2010 |
Junior Member |
|
|
Hello everyone,
I'm completely new in RTSC world. What I'm trying to do is to get access to variable defined in module from other module. Here is an example:
------------------------------------------------------------ -------------------------------
module ModA {
instance:
config Int A;
...
}
------------------------------------------------------------ ------------------------------
import ModA
module ModB{
Void doSth(ModA.Handle hModA)
...
}
------------------------------------------------------------ ---------------------------
Void ModB_doSth(ModA_Handle hModA)
{
Int B = hModA->A;
}
Everytime I try to compile package I get compilation error in ModB_doSth:
"pointer to incomplete class not allowed"
My question is: how to create the public field, in instance module, that I could reach using handle?
Thank You for any suggestions.
[Updated on: Mon, 21 June 2010 10:18] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02347 seconds