Home Help Center

extending from interfaces defined in other module in slice

sylvainsylvain Member Sylvain FaselOrganization: university of GenevaProject: quantum cryptographic systems ✭✭
Hi,

Let's say I have a good reason to have the two following .ice file
//file A.ice
module TopLevel
{
	module LevelA
	{
		module Foo
		{
			interface FooA
			{
				void Bar();
			};
		};
	};
};
//file B.ice
#include "A.ice"
module TopLevel
{
	module LevelB
	{
		module Foo
		{
			interface FooB extends [COLOR="Red"][B]?LevelA.[/B][/COLOR]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!

Comments

  • dwaynedwayne St. John's, NewfoundlandMember Dwayne BooneOrganization: ZeroC, Inc.Project: Internet Communications Engine
    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.
  • sylvainsylvain Member Sylvain FaselOrganization: university of GenevaProject: quantum cryptographic systems ✭✭
    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
Sign In or Register to comment.