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,7009541db2ced1ad,start X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!newsfeed.straub-nv.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!xindi.nntp.kabelfoon.nl!npeer.de.kpn-eurorings.net!npeer-ng1.kpn.DE!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Construction initialization problem 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 Date: Thu, 4 Dec 2008 17:08:28 +0100 Message-ID: NNTP-Posting-Date: 04 Dec 2008 17:08:28 CET NNTP-Posting-Host: 0e38f874.newsspool1.arcor-online.net X-Trace: DXC=`Sch8h@@IX9NTD55K=ic==]BZ:af>4Fo<]lROoR1^YC2XCjHcb9TPFk8flE511DNcfSJ;bb[5FCTGGVUmh?4LK[5LiR>kg29@47iT_EAn: X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:2871 Date: 2008-12-04T17:08:28+01:00 List-Id: Consider this: type A is tagged limited null record; type B (X : not null access A'Class) is tagged limited null record; Now we want to specialize B so that its instances would already contain A: type C is new B with record Y : aliased A; end record; Now there seems no way to either create an object of C so that C.X would point to C.Y or else to derive from C a new type without discriminant: type D is new C (X => C.Y'Access) with null record; -- Illegal type D is new C (X => D.Y'Access) with null record; -- Illegal -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de