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,735c710b5e547bad X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.39.72 with SMTP id f8mr1355326qae.7.1343314311177; Thu, 26 Jul 2012 07:51:51 -0700 (PDT) Received: by 10.66.76.162 with SMTP id l2mr1239337paw.42.1343314194222; Thu, 26 Jul 2012 07:49:54 -0700 (PDT) Path: a15ni105485768qag.0!nntp.google.com!q21no16079700qas.0!news-out.google.com!p10ni64877121pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!border6.newsrouter.astraweb.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder5.xlned.com!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Ada 2005 puzzle Date: Tue, 24 Jul 2012 09:54:17 +0200 Organization: cbb software GmbH Message-ID: References: <1arp60wtxes8h$.1qs6bt732ztgp.dlg@40tude.net> <030cde76-7435-405d-9f12-ac7f730ecab8@googlegroups.com> <1f9q6vk5z2r3t$.1hayo9rmxfwu7$.dlg@40tude.net> <1agfifqlayl3y.1bp09z5i37ewk$.dlg@40tude.net> <1nnq1oprn6h4f.1s5myl3oupdds$.dlg@40tude.net> <57ed1bca-b503-492c-a3b1-012369484e93@googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 9A8bJrx4NhDLcSmbrb6AdA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Date: 2012-07-24T09:54:17+02:00 List-Id: On Mon, 23 Jul 2012 21:23:50 -0700 (PDT), Adam Beneschan wrote: > On Monday, July 23, 2012 7:38:30 PM UTC-7, Randy Brukardt wrote: >>> >>> I don't understand that, I am not a language lawyer. You are. Is my example >>> legal and GNAT wrong? In case it is illegal, then how do I change the >>> aggregate to make it legal. >> >> The example you have is illegal. But the reason it is illegal is not because >> there are any semantic problems with the construct -- it's illegal purely >> because it is difficult to implement on some compilers. > > Just to forestall any possible confusion: I think Dmitry's example *would* > be illegal if it didn't involve a null extension. But since his original > post did involve a null extension, I think the example in his post was > legal and GNAT was wrong. I'm guessing, though, that Dmitry probably > started with a non-null type extension and just understandably simplified > it too far. Exactly. I repeat it again. It is not about any concrete example. It is about the principle that constructing function would allow writing an aggregate for a derived type. [where the later is fully visible of course, when only abstract ancestors extended by null record are in between. Put whatever *rational* restrictions here]. If it does not, then I really fail to understand the purpose of. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de