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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3867e2f73fa21ec X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 X-Received: by 10.66.122.200 with SMTP id lu8mr6423586pab.4.1367752318489; Sun, 05 May 2013 04:11:58 -0700 (PDT) Path: bp1ni1621pbd.1!nntp.google.com!news.glorb.com!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Ada 2012: In-out parameters for functions Date: Sun, 05 May 2013 13:11:55 +0200 Organization: Ada @ Home Message-ID: References: <7704abab-86f2-4edc-ad4b-b3d4e70004fb@googlegroups.com> NNTP-Posting-Host: 01/BPNoqk8s7XmPzrYdoUA.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-05-05T13:11:55+02:00 List-Id: Le Sun, 05 May 2013 12:24:50 +0200, Niklas Holsti = a =C3=A9crit: > How about reusing the mode keywords: > > Proc ( > In_Param =3D> in A, > Out_Param =3D> out B, > In_Out_Param =3D> in out C); > > An alternative, perhaps more English-like, [=E2=80=A6] > > Proc ( > in In_Param =3D> A, > out Out_Param =3D> B, > in out In_Out_Param =3D> C); > But may be the first is more Chinese=E2=80=91like :P (I don't know, I do= n't know = Chinese) Not joking, the first looks better to me, it better express what it mean= s = as the mode is closer to the actual parameter which is the subject of th= e = mode (the same way at the declaration, it is closer to the type, which i= s = the best to me for a similar reason). Seems this topic was not discussed at all for Ada 2012. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity