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: a07f3367d7,f857f366542cd8aa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news.teledata-fn.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Dispatch on the result still does not work? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <3a2a94a3-91df-411e-b078-498cc7850554@18g2000yqa.googlegroups.com> <7tu7wng4vxn6.nhbegffx941o$.dlg@40tude.net> Date: Sun, 12 Jul 2009 11:46:18 +0200 Message-ID: NNTP-Posting-Date: 12 Jul 2009 11:46:19 CEST NNTP-Posting-Host: 8cfe8bec.newsspool4.arcor-online.net X-Trace: DXC=2nVA=R9Dea`<6cDJZfMd_c4IUK On Sat, 11 Jul 2009 16:22:01 -0700 (PDT), Hibou57 (Yannick Duch�ne) wrote: > On 11 juil, 21:29, "Dmitry A. Kazakov" > wrote: >> I would not. A limited object (actually any object) is to be constructed, >> by a constructor, which cannot be a function or procedure. (The current >> solution is like a conceptual Swiss cheese) > > Your mean another syntatic construct would be welcome to make things > more distinct ? No, the syntax is already here: X : T (); What is needed is an ability to require some procedures (like Initialize) to be called at a certain stages of object construction. There are three key stages of construction where a user-defined procedure can be called: 1. Determination of constraints (discriminants, bounds, etc) | V allocation | V construction of the components | V construction of the parents | V 2. Type-specific initialization | V (if class-wide) construction of the parent classes | V 3. Class-specific initialization -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de