Results 1 to 3 of 3

Thread: extending from interfaces defined in other module in slice

  1. #1
    sylvain is offline Registered User
    Name: Sylvain Fasel
    Organization: university of Geneva
    Project: quantum cryptographic systems
    Join Date
    Feb 2003
    Location
    Geneva (Switzerland)
    Posts
    42

    Post extending from interfaces defined in other module in slice

    Hi,

    Let's say I have a good reason to have the two following .ice file
    Code:
    //file A.ice
    module TopLevel
    {
    	module LevelA
    	{
    		module Foo
    		{
    			interface FooA
    			{
    				void Bar();
    			};
    		};
    	};
    };
    Code:
    //file B.ice
    #include "A.ice"
    module TopLevel
    {
    	module LevelB
    	{
    		module Foo
    		{
    			interface FooB extends ?LevelA.FooA
    			{
    				void BarBar();
    			};
    		};
    	};
    };
    My question is: what should I do (instead of writing "LevelA.") in front of FooA to extends from FooA?

    Is it only possible ot extends from interface defined inside the very same module?

    Thanks in advance!
    Sylvain Fasel
    Group of Applied Physics
    University of Geneva
    www.gapoptic.unige.ch
    Research in applied quantum cryptography

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    It should be "LevelA::Foo::FooA" or you could also use "TopLevel::LevelA::Foo::FooA" but the "TopLevel" is not necessary since both interfaces share that module.

  3. #3
    sylvain is offline Registered User
    Name: Sylvain Fasel
    Organization: university of Geneva
    Project: quantum cryptographic systems
    Join Date
    Feb 2003
    Location
    Geneva (Switzerland)
    Posts
    42
    Hi Dwayne,

    thanks and sorry for this question. I was sure I tried the "::" semantic at some point without success, but there was probably another typo. My original ice files are not as simple as the sample I gave you of course..

    Regarsm
    Sylvain Fasel
    Group of Applied Physics
    University of Geneva
    www.gapoptic.unige.ch
    Research in applied quantum cryptography

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. About slice module
    By Janggwan in forum Help Center
    Replies: 4
    Last Post: 12-14-2010, 06:48 AM
  2. Replies: 7
    Last Post: 04-23-2009, 02:15 PM
  3. Using types defined by other libraries in slice.
    By Genia4 in forum Help Center
    Replies: 3
    Last Post: 10-17-2005, 07:34 PM
  4. How to use Slice defined Types in another definition
    By Venkat Seeth in forum Help Center
    Replies: 4
    Last Post: 02-22-2005, 12:24 PM
  5. Forward referencing interfaces in slice
    By Nis Baggesen in forum Help Center
    Replies: 2
    Last Post: 09-21-2004, 02:03 AM

Posting Permissions

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