Forward referencing problem

Sai-Lai Lo S.Lo@orl.co.uk
Fri, 20 Feb 1998 11:25:40 GMT


>>>>> Fredrik Jonsson writes:

> On Tuesday, February 17, 1998 5:07 PM, S.Lo@orl.co.uk [SMTP:S.Lo@orl.co.uk] 
> wrote:
>> The compilation fails not because of circular reference but because the
>> interface B is not defined when the stub is compiled.

> So, does that imply that as soon as I have a circular relation ship
> I'm forced to compile those interfaces into a single translation unit?

If you have something like this:

interface A;

interface B {
   A opa();
};

interface A {
   B opb();
};

I'm afraid you have to compile these interfaces in a single translation
unit.

Sai-Lai