Results 1 to 3 of 3

Thread: docs: reference to other modules in slice

  1. #1
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134

    Post docs: reference to other modules in slice

    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

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    What you are doing is legal and exactly as intended. See page 142 in the manual.

    Cheers,

    Michi.

  3. #3
    n2503v is offline Registered User
    Name: Alex Makarenko
    Organization: ACFR, University of Sydney
    Project: Orca
    Join Date
    Jun 2005
    Posts
    134
    Thanks Michi, that's exactly what i was looking for.
    alex
    Alex Makarenko
    Marathon Robotics
    project: multi-robot systems

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 03-25-2010, 12:35 PM
  2. template error in nested slice modules
    By n2503v in forum Bug Reports
    Replies: 2
    Last Post: 03-10-2010, 06:38 PM
  3. Replies: 4
    Last Post: 11-03-2009, 03:16 AM
  4. Unable to find IceUtil reference in online docs
    By vanco in forum Help Center
    Replies: 1
    Last Post: 01-10-2008, 07:11 PM
  5. IcePHP docs
    By griffima in forum Help Center
    Replies: 2
    Last Post: 10-15-2004, 01:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •