home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!prism!federation!andy
- From: andy@federation.gatech.edu (Andy Register)
- Newsgroups: comp.lang.c++
- Subject: Re: Does anyone understand this quirk?
- Message-ID: <75096@hydra.gatech.EDU>
- Date: 17 Nov 92 13:55:26 GMT
- References: <1992Nov17.073603.5235@murdoch.acc.Virginia.EDU>
- Sender: news@prism.gatech.EDU
- Organization: CERL-EE, Georgia Institue of Technology
- Lines: 11
-
-
- Nah, it does what I would expect. The constructor for B
- first creates an A. When the constructor for A is called
- it really doesn't know anything about B, yet.
-
- Try replacing your B ctor with,
- B () : A() { id(); }
- and watch what happens.
-
- Toodles
- Andy
-