I need to refer from one module to another in Slice. Using C++ notation seems to work but I couldn't find any explicit mention of this in Sec. 4.6.
Code:// Slice module mod1 { struct S1 { int i; } } module mod2 { struct S2 { ::mod1::S1 s; } }
|
|
I need to refer from one module to another in Slice. Using C++ notation seems to work but I couldn't find any explicit mention of this in Sec. 4.6.
Code:// Slice module mod1 { struct S1 { int i; } } module mod2 { struct S2 { ::mod1::S1 s; } }
Alex Makarenko
Marathon Robotics
project: multi-robot systems
What you are doing is legal and exactly as intended. See page 142 in the manual.
Cheers,
Michi.
Thanks Michi, that's exactly what i was looking for.
alex
Alex Makarenko
Marathon Robotics
project: multi-robot systems
There are currently 1 users browsing this thread. (0 members and 1 guests)