home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11431 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.lang.c++
  2. From: nikki@trmphrst.demon.co.uk (Nikki Locke)
  3. Path: sparky!uunet!pipex!demon!trmphrst.demon.co.uk!nikki
  4. Subject: Re: classes referenced each in their declaration
  5. Distribution: world
  6. References: <1992Jul21.174445.24733@menudo.uh.edu>
  7. Organization: Trumphurst Ltd.
  8. Lines: 21
  9. Date: Wed, 22 Jul 1992 21:24:15 +0000
  10. Message-ID: <711865455snx@trmphrst.demon.co.uk>
  11. Sender: usenet@gate.demon.co.uk
  12.  
  13.  
  14. In article <1992Jul21.174445.24733@menudo.uh.edu> qincao@cs.uh.edu (Qin Cao) writes:
  15.  
  16. > class X;
  17. > class Y;
  18. > class X {
  19. >   int a;
  20. >   Y b;          // if I put "Y *b;" here, it works fine 
  21. > };
  22. > class Y {
  23. >  int c;
  24. >  X d;
  25. > };
  26. Quite apart from the impossibility of the compiler knowing how much 
  27. storage to use for objects of type X, the quantity is, in fact, infinite :-(
  28. ---
  29. Nikki Locke              |                        | nikki@trmphrst.demon.co.uk
  30. Trumphurst Ltd.          | Tel: +44 (0)691-670318 | nikki@cix.compulink.co.uk
  31. PC and Unix consultancy  | Fax: +44 (0)691-670316 | nikki@kewill.co.uk
  32.