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,ace9bff8eb84e5b1 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Generic Zero Length Array 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: <9b771018-fb0b-42eb-ae00-12ee3eda69b2@p43g2000hsc.googlegroups.com> <2446841a-8bb0-46bc-94ed-099e4e0ca74c@k2g2000hse.googlegroups.com> <7cd05c2a-d67a-4623-a9dc-67e357877f48@e6g2000prf.googlegroups.com> Date: Sat, 23 Feb 2008 10:30:02 +0100 Message-ID: NNTP-Posting-Date: 23 Feb 2008 10:30:04 CET NNTP-Posting-Host: d58c79c4.newsspool1.arcor-online.net X-Trace: DXC=nKma0R5m@1>^cW`WBF>WQ4Fo<]lROoR1Fl8W>\BH3Y2F\IJf=]4B04DNcfSJ;bb[5IRnRBaCd:]OgnmXk4I0fGF3=^ On Fri, 22 Feb 2008 15:01:02 -0800 (PST), Adam Beneschan wrote: > [Actually, there's one case where you still can't specify a null array > aggregate, and that's where the index type is either "mod 1" or an > enumeration type with one value: > > type Enum is (This_One); > type Arr is array (Enum range <>) of Anything; > > Now go ahead and try to specify a zero-element array aggregate of type > Arr. You can't. But this is a pretty pathological case so it's not > worth trying to change the language for it.] I think it would, because the problem is that a null range cannot specified. And more generally is that ranges aren't first-class citizens. The language would be better if that were fixed. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de