Just to complete the view, i' m trying to simulate inheritance.

Derived Classes need to have a required field to their mother (so that
when i'm using directly a derived class i can set the super class
fields).

And abstract classes need to have an optional field
to all possible derived classes (emulate the fact that a super class
can become any sort of derived class).

I can bypass the problem by using "extend" in the derived classes
message file (extending field of the super class, adding an optional
field of themselves) , so that only the derived classes side need to
use import.

but i was wondering if there was another way to do so ??

cheers,

Pascal ly


On May 28, 6:51 pm, [email protected] wrote:
> Hi,
>
>  i need a message A to have a field with a message B, and at the same
> time i need messages B to have a field to message A, how to avoid
> recursive imports ??
>
> cheers,
>
> Pascal Ly.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to