home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16428 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  686 b 

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!prism!federation!andy
  2. From: andy@federation.gatech.edu (Andy Register)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Does anyone understand this quirk?
  5. Message-ID: <75096@hydra.gatech.EDU>
  6. Date: 17 Nov 92 13:55:26 GMT
  7. References: <1992Nov17.073603.5235@murdoch.acc.Virginia.EDU>
  8. Sender: news@prism.gatech.EDU
  9. Organization: CERL-EE, Georgia Institue of Technology
  10. Lines: 11
  11.  
  12.  
  13. Nah, it does what I would expect.  The constructor for B
  14. first creates an A.  When the constructor for A is called
  15. it really doesn't know anything about B, yet.
  16.  
  17. Try replacing your B ctor with,
  18.          B () : A() { id(); }
  19. and watch what happens.
  20.  
  21. Toodles
  22. Andy
  23.