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,efc9f994d31d0d5e X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.germany.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Limited initialization for non-limited types Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.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: Wed, 26 Mar 2008 16:08:01 +0100 Message-ID: <18qmimmlhda5k$.1v4ganr2wmoab.dlg@40tude.net> NNTP-Posting-Date: 26 Mar 2008 16:08:01 CET NNTP-Posting-Host: f8ff0594.newsspool4.arcor-online.net X-Trace: DXC=e9lJGlAK_2D@k=MdN::NBI4IUKBh;\jVeLXaoI[6LHn;2LCVN[j80^iJAG@nKM^QldhkL X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:20583 Date: 2008-03-26T16:08:01+01:00 List-Id: On Wed, 26 Mar 2008 06:26:42 -0700 (PDT), Eric Hughes wrote: > Is there any way of getting in-place initialization for non-limited > objects? [...] It is both simpler and more complex. What is IMO needed: 1. Extensible operations. (That is when a primitive operation has non-overridable parts, like constructors, destructors, assignments, aggregates usually do.) 2. Assignment (a part of) as a doubly dispatching primitive operation. (In order to have access to LHS and RHS, which is one problem in your example) 3. Constructor (a part of) as a primitive operation. (Again, to access LHS, which is another problem you have) 4. Multi-stage construction/assignment model. (In order to handle discriminants before allocation, allocation before components initialization and components before assignment completion) ---------- P.S. Supertypes, classes for all types, multiple inheritance. These will give you a way to hang your tracing stuff on any existing type rather than deriving them from a common base. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de