Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!linac!att!att!andante!alice!ark From: ark@alice.att.com (Andrew Koenig) Newsgroups: comp.lang.c++ Subject: Re: Constructor question Message-ID: <20204@alice.att.com> Date: 12 Apr 91 13:18:18 GMT References: <1991Apr2.110623.22219@and.cs.liv.ac.uk> <20164@alice.att.com> <17400@sunquest.UUCP> Reply-To: ark@alice.UUCP () Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 23 In article <17400@sunquest.UUCP> francis@sunquest.UUCP (Francis Sullivan) writes: > ark@alice.att.com (Andrew Koenig) writes: > >In article <1991Apr2.110623.22219@and.cs.liv.ac.uk> markr@and.cs.liv.ac.uk writes: > >> Can I call one constructor to class X explicitly from within another > >> constructor to class X ? > >No. > Yes, by using operator= Sorry, but still no. The usage you propose is implicitly (not explicitly) calling the constructor to construct a *different* object. The original question was whether it was possible for one constructor of a class to call another constructor to help it construct the same object; the answer to that question is `no.' -- --Andrew Koenig ark@europa.att.com