Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uakari.primate.wisc.edu!sdd.hp.com!wuarchive!julius.cs.uiuc.edu!apple!netcom!teda!ditka!mcdchg!tellab5!balr!clrcom!rmartin From: rmartin@clear.com (Bob Martin) Newsgroups: comp.lang.c++ Subject: Re: Array of class objects Keywords: array, initialization, class objects Message-ID: <1990Dec6.160837.7491@clear.com> Date: 6 Dec 90 16:08:37 GMT References: <1756@enuxha.eas.asu.edu> <1990Nov15.050358.16043@clear.com> <59511@microsoft.UUCP> Organization: Clear Communications, Inc. Lines: 27 In article <59511@microsoft.UUCP> jimad@microsoft.UUCP (Jim ADCOCK) writes: >In article <1990Nov15.050358.16043@clear.com> rmartin@clear.com (Bob Martin) writes: >|I'll take a stab at answering this. My manual (which happens to be >|the version of the ARM published by SUN) says in 12.1 that: >| >| "A default constructor for a class X is a constructor of the >| form X::X(). A default constructor will not be generated for >| a class X if any constructor has been declared for class X. > >ACK! *My* manual [...] *the* version of ARM says: > "A default constructor for a class X is a constructor of class > X that can be called without an argument. > >Please do not quote an individual vendor's reference manuals as being >"the" facts on C++. [There is no ARM except *the* ARM. Get it. :-] Sorry, point taken. *the* ARM says in 12.1: A default constructor is typically of the form X::X() [...] A default contructor will be generated for a class X only if no constructor has been declared for class X. -- +-Robert C. Martin-----+:RRR:::CCC:M:::::M:| Nobody is responsible for | | rmartin@clear.com |:R::R:C::::M:M:M:M:| my words but me. I want | | uunet!clrcom!rmartin |:RRR::C::::M::M::M:| all the credit, and all | +----------------------+:R::R::CCC:M:::::M:| the blame. So there. |