home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- From: nikki@trmphrst.demon.co.uk (Nikki Locke)
- Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
- Subject: Re: classes referenced each in their declaration
- Distribution: world
- References: <1992Jul21.174445.24733@menudo.uh.edu>
- Organization: Trumphurst Ltd.
- Lines: 21
- Date: Wed, 22 Jul 1992 21:24:15 +0000
- Message-ID: <711865455snx@trmphrst.demon.co.uk>
- Sender: usenet@gate.demon.co.uk
-
-
- In article <1992Jul21.174445.24733@menudo.uh.edu> qincao@cs.uh.edu (Qin Cao) writes:
-
- > class X;
- > class Y;
- >
- > class X {
- > int a;
- > Y b; // if I put "Y *b;" here, it works fine
- > };
- >
- > class Y {
- > int c;
- > X d;
- > };
- Quite apart from the impossibility of the compiler knowing how much
- storage to use for objects of type X, the quantity is, in fact, infinite :-(
- ---
- Nikki Locke | | nikki@trmphrst.demon.co.uk
- Trumphurst Ltd. | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
- PC and Unix consultancy | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
-