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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC 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!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Constructing an object Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Fri, 23 Sep 2005 15:42:03 +0200 Message-ID: <1h18e16dlutcr$.s476n42ze4s5$.dlg@40tude.net> NNTP-Posting-Date: 23 Sep 2005 15:42:04 MEST NNTP-Posting-Host: a3f8872c.newsread2.arcor-online.net X-Trace: DXC=_Q2S0CeFDX0;iAbK4FA[l4Q5U85hF6f;4jW\KbG]kaM8GSi?jHD8GO0XC`nbISP3K>[6LHn;2LCV>7enW;^6ZC`4<=9bOTW=MN> X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:5065 Date: 2005-09-23T15:42:04+02:00 List-Id: On Fri, 23 Sep 2005 12:36:05 GMT, Matthew Heaney wrote: > "Dmitry A. Kazakov" writes: > >> Replace it with: >> >> type Shape (<>) is private; > > Yes, but now the type is indefinite, which means you can't declare it as > a component of a composite type. You mean publicly: type Foo is record X : Shape; end record; because privately it will be OK: type Foo is private; private type Foo is record X : Shape; end record; Which is quite logical in my view. > The easiest thing is just to default initialize the component(s), and > don't bother declaring the type as indefinite. If you still want to > force some post-declaration initialization, Yes, when possible. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de