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: a07f3367d7,3867e2f73fa21ec X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 X-Received: by 10.66.102.33 with SMTP id fl1mr4331317pab.38.1367581323959; Fri, 03 May 2013 04:42:03 -0700 (PDT) Path: ln4ni1228pbb.0!nntp.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!news2.euro.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!news.stack.nl!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: Fri, 03 May 2013 13:42:02 +0200 Organization: Ada @ Home Message-ID: References: <7704abab-86f2-4edc-ad4b-b3d4e70004fb@googlegroups.com> NNTP-Posting-Host: nReaOVWq/ugo3wZUL0F24Q.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 X-Received-Bytes: 2465 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2013-05-03T13:42:02+02:00 List-Id: Le Fri, 03 May 2013 12:48:29 +0200, anon a =C3=A9crit: > Since then one or more of Ada maintainers have decided to add number > of "C" like syntax and/or coding to Ada. An example is the "conditiona= l > statements" That's not that much specifically C=E2=80=91like. You have the same in f= ormal = languages like SML where everything is an expression. That's not typical= = of C, and that's not this feature which makes C unusable as soon beyond = = the tiny scale. > another is the the "C" function/procedure call with both > having in out parameters. A number of old "C" compilers ( 1980..1990s= > from Microsoft and IBM ) allowed the "in out" parameters for C > functions. You could already have less safe hidden side effects, and as some one = mentioned, you could modify an argument via some indirection. In/out mak= es = clear what was hidden, which is finally safer (Ada is a procedural = language, not a pure functional language). However, I personally still = miss the ability to remind in/in=E2=80=91out/out modes at the call=E2=80= =91place, and = that's the main grief I have with Ada on that topic. > Another change is the "Copy by Reference" has been replaced by > "Copy by Type". What is =E2=80=9Ccopy by type=E2=80=9D? -- = =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