Archived
This forum has been archived. Please start a new discussion on GitHub.
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
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!
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!
0
Comments
-
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.0
-
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..
Regarsm0