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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:190b:: with SMTP id b11-v6mr5749186itb.36.1529356831708; Mon, 18 Jun 2018 14:20:31 -0700 (PDT) X-Received: by 2002:aca:d448:: with SMTP id l69-v6mr562585oig.0.1529356831605; Mon, 18 Jun 2018 14:20:31 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsreader5.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u78-v6no5161548itb.0!news-out.google.com!z3-v6ni6600iti.0!nntp.google.com!d7-v6no5189869itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 18 Jun 2018 14:20:31 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=76.113.16.86; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 76.113.16.86 References: <5e86db65-84b9-4b5b-9aea-427a658b5ae7@googlegroups.com> <878t7u1cfm.fsf@nightsong.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <776f3645-ed0c-4118-9b4d-21660e3bba4b@googlegroups.com> Subject: Re: Ada Successor Language From: Shark8 Injection-Date: Mon, 18 Jun 2018 21:20:31 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 2505 X-Received-Body-CRC: 169107778 Xref: reader02.eternal-september.org comp.lang.ada:53146 Date: 2018-06-18T14:20:31-07:00 List-Id: On Monday, June 18, 2018 at 2:45:39 PM UTC-6, Niklas Holsti wrote: > On 18-06-18 23:22 , Jeffrey R. Carter wrote: > > On 06/18/2018 09:16 PM, Niklas Holsti wrote: > >> > >> Nah... invites "Ada'Succ sucks". > > > > Also, in Ada, Ada'Succ is not the successor of Ada. >=20 > But perhaps the successor language will let us write X'Succ as an=20 > abbreviation of X_Type'Succ(X) ... similarly to the recent introduction= =20 > of X'Image. I'd honestly like the ability to use X'Type; this would allow us to say som= ething like this: Procedure Swap( A, B : in out Some_Type ) is Temp : Constant B'Type :=3D B; Begin B:=3D A; A:=3D Temp; End Swap; Yeah, I know, it's a little thing and you can do it with generics, etc. But= that's not entirely the point, the point is that this allows the declarati= on of types dependent on objects... it provides some of the niceties of typ= e-inference without having to resort to such lazy/possibly-error-prone meth= odologies.