Results 1 to 2 of 2

Thread: Nested Modules

  1. #1
    Ryuga is offline Registered User
    Name: Stefano Liboni
    Organization: deltatre
    Project: D3Msg - result system propagation
    Join Date
    Feb 2009
    Posts
    5

    Red face Nested Modules

    Hello,
    Im implementing part of a framework and my come will be placed in a namespece Framework.ISC.Messaging.
    When I write my .ice file I would like to put the classes of the resulting .cs file in the same namespace, so I tryed to write this:

    module Framework.ISC.Messaging {
    ... all my structures ...
    };

    But I had a syntax error from the slice2cs process.
    I tryed with:

    module Framework {
    module ISC {
    module Messaging {
    ... all my structures ...
    };
    };
    };

    And it worked.
    Is it the only way to do it?
    Tnx in advance

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Yes, it's the only way to do it in C#. You need to declare the three modules in the Slice.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. slice2cpp streaming API bug with nested modules
    By PrzemekD in forum Bug Reports
    Replies: 3
    Last Post: 05-26-2010, 12:52 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. slice2html creates broken links for nested modules
    By mefoster in forum Bug Reports
    Replies: 1
    Last Post: 05-01-2007, 06:25 PM
  4. Replies: 1
    Last Post: 04-02-2007, 05:41 PM
  5. docs: reference to other modules in slice
    By n2503v in forum Comments
    Replies: 2
    Last Post: 11-20-2006, 04:00 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
  •