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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,6aa1ec264ce25142 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.84.199 with SMTP id b7mr2033449paz.11.1346188052749; Tue, 28 Aug 2012 14:07:32 -0700 (PDT) Received: by 10.68.190.65 with SMTP id go1mr3878398pbc.6.1346188052734; Tue, 28 Aug 2012 14:07:32 -0700 (PDT) Path: t10ni106882016pbh.0!nntp.google.com!4no23678616pbn.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Aug 2012 14:07:32 -0700 (PDT) In-Reply-To: <027d5417-06c0-46f5-a04a-70269f593b18@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ NNTP-Posting-Host: 66.126.103.122 References: <1p5r39cusgc1n$.18nj9sytckk6$.dlg@40tude.net> <874nnmhki2.fsf@mid.deneb.enyo.de> <027d5417-06c0-46f5-a04a-70269f593b18@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <090f7d43-21c1-480d-8428-96c1c59ec7f2@googlegroups.com> Subject: Re: Real syntax problems in Ada From: Adam Beneschan Injection-Date: Tue, 28 Aug 2012 21:07:32 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-08-28T14:07:32-07:00 List-Id: On Tuesday, August 28, 2012 1:53:01 PM UTC-7, Shark8 wrote: > On Tuesday, August 28, 2012 1:41:42 PM UTC-6, Florian Weimer wrote: >=20 > > There is no convenient way to write zero-element and one-element array > > aggregates. >=20 > Named null range for arrays? That'd take care of zero-elements. In the past, I've wanted something like (null array), which would be consis= tent since Ada already has (null record). The language would have to defin= e what the actual bounds of the array are, however, since a program can sti= ll refer to A'First or A'Last and they have to be defined to be something. = Starting with Ada 2005, it's now possible to say (1..0 =3D> <>), which mak= es things better than they were before--at least there's no more problem of= having to come up with a dummy value to put on the right side of the arrow= . -- Adam