docs: reference to other modules in slice

n2503vn2503v Member Alex MakarenkoOrganization: ACFR, University of SydneyProject: Orca ✭✭✭
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.
// Slice

module mod1
{
    struct S1
    {
          int i;
     }
}

module mod2
{
    struct S2
    {
          ::mod1::S1 s;
     }
}

Comments

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    What you are doing is legal and exactly as intended. See page 142 in the manual.

    Cheers,

    Michi.
  • n2503vn2503v Member Alex MakarenkoOrganization: ACFR, University of SydneyProject: Orca ✭✭✭
    Thanks Michi, that's exactly what i was looking for.
    alex
Sign In or Register to comment.