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,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.223.40 with SMTP id qr8mr2311656pbc.0.1340982830725; Fri, 29 Jun 2012 08:13:50 -0700 (PDT) Path: l9ni33661pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Fri, 29 Jun 2012 08:12:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <32b1473c-0055-4c79-b7bb-1350836faf48@googlegroups.com> References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <99d27165-f1da-4d0b-a121-fd8dbf637635@googlegroups.com> <8e48e4e4-14a0-4f6c-a133-2716f0506035@googlegroups.com> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 X-Trace: posting.google.com 1340982830 12297 127.0.0.1 (29 Jun 2012 15:13:50 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 29 Jun 2012 15:13:50 +0000 (UTC) In-Reply-To: <8e48e4e4-14a0-4f6c-a133-2716f0506035@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-06-29T08:12:25-07:00 List-Id: On Friday, June 29, 2012 4:54:55 AM UTC-7, AdaMagica wrote: > On Friday, June 29, 2012 1:29:03 PM UTC+2, (unknown) wrote: > > 1. Want to see parameter modes in calls. > > > > procedure Proc (An_In_Parameter : in Integer; > > An_Out_Parameter : out Integer; > > An_Inout_Parameter : in out Integer; > > An_Access_Parameter : access Integer); > > > > Proc (An_In_Parameter <=3D A, > > An_Out_Parameter =3D> B, > > An_Inout_Parameter <=3D> C, > > An_Access_Parameter -> D'Access); > > > > A becomes An_In_Parameter, An_Out_Parameter becomes B, etc. >=20 > I've often wished that be possible. However "<=3D" is already defined as = a relational operator "less or equal". so <=3D=3D or something like that wo= uld be needed. ("Greater or equal" is ">=3D", so there is no problem, but f= or consistency =3D=3D> would then perhaps be better.) >=20 > > 2. Expressions with Discriminants. > > > > type Symmetric_Matrix (Dim : Natural) is record > > Values : Float_Array (1 .. Dim * (Dim + 1) / 2; > > end record; >=20 > Also this would be nice. However then the upper bound would have to be st= ored as a hidden record component as well, I guess, and this would conflict= with respresentation clauses (how to handle hidden components). The solution is simple: don't allow record representation clauses in cases = like that. I can't imagine anyone wanting to define a record of this natur= e anyway in a situation where the representation has to be specified exactl= y because the record is used by code in some other language, or something l= ike that. (I think implementors are already allowed to reject representation clauses = they can't handle, and they're allowed to come up with fake names for hidde= n components in record rep clauses. The real reason expressions involving = discriminants aren't allowed was, I think, because back when Ada 83 was des= igned they were thought to add too much complexity for implementors. Or so= mething like that... I'm not entirely sure.) -- Adam