Re: Recursive dependencies
- From: "Tristan Van Berkom" <tvb gnome org>
- To: "Maciej Piechotka" <uzytkownik2 gmail com>
- Cc: gtk-list gnome org
- Subject: Re: Recursive dependencies
- Date: Tue, 30 Dec 2008 00:53:48 -0500
On Mon, Dec 29, 2008 at 7:52 PM, Maciej Piechotka <uzytkownik2 gmail com> wrote:
> Hello. How to handle it in the most glib-style. I have a 2 classes - A
> and B.
> A:
> - Should have a virtual method returning B
> B:
> - Should have a virtual method returning A
>
Generally in C, we'll use a common header to declare a forward
declaration of the
instance types:
typedef _FooA FooA
typedef _FooB FooB
Then both headers of A and B classes can include
the same header without including eachother.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]