|
From: Ioannis V. <no...@ho...> - 2002-05-07 19:22:54
|
I suppose the question was for me and i suppose the question is to have
2 classes one containing an object of the other (i did not pay much
attention when i saw the code).
Well this cannot be done and it is good it can't be done, because then
the computers would crash. :)
Imagine the code:
class B;
class A
{
B b;
};
class B
{
A a;
};
A contains a B which contains an A which contains a B...
That's why it can't be done.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Ricardo L=F3pez Ruiz
> Sent: Tuesday, May 07, 2002 9:45 PM
> To: Dev-C++
> Subject: Re: [Dev-C++] Foward declaration
>=20
>=20
> Then, is there no possibility to program something
> as Luis Bras propose??...Some special trick, I mean.
>=20
> Ricardo.
>=20
>=20
> _______________________________________________________________
>=20
> Have big pipes? SourceForge.net is looking for download=20
> mirrors. We supply
> the hardware. You get the recognition. Email Us:=20
> ban...@so...
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|