From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2e2db8edf2656165 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail From: "Hyman Rosen" Newsgroups: comp.lang.ada Subject: Re: Constructing an object Date: 23 Sep 2005 06:03:36 -0700 Organization: http://groups.google.com Message-ID: <1127480616.817148.231220@g47g2000cwa.googlegroups.com> References: NNTP-Posting-Host: 204.253.249.72 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1127480622 14715 127.0.0.1 (23 Sep 2005 13:03:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 23 Sep 2005 13:03:42 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=204.253.249.72; posting-account=lJDDWg0AAACmMd7wLM4osx8JUCDw_C_j Xref: g2news1.google.com comp.lang.ada:5061 Date: 2005-09-23T06:03:36-07:00 List-Id: Matthew Heaney wrote: > Yes, but now the type is indefinite, which means you can't declare it as > a component of a composite type. (This is no different from C++, when > you hide the default ctor.) Just to correct this, C++ does not require a default constructor for objects which are components of classes, but does require them for objects which are elements of arrays.