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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!mx05.eternal-september.org!feeder.eternal-september.org!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: Thu, 02 May 2013 09:11:18 +0200 Organization: Ada @ Home Message-ID: References: <7704abab-86f2-4edc-ad4b-b3d4e70004fb@googlegroups.com> <16vvwvhsw7qit.dwhm4k8m5ggs$.dlg@40tude.net> NNTP-Posting-Host: nS0pckIoQAtdrQ+ei+VCFQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/12.15 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:15293 Date: 2013-05-02T09:11:18+02:00 List-Id: Le Thu, 02 May 2013 08:41:41 +0200, Dmitry A. Kazakov = a =C3=A9crit: >> This is more a procedure than a function (it either won't return the = = >> same >> the next time invoked with the same argument or either the argument c= an >> never be considered to be the same as it use to be any=E2=80=91more),= > > Surely it will. Same argument means same value and the value of a stre= am = > is > its state. If the stream is in the same state the function will return= = > same > result. If the state includes the last operation time (with non=E2=80=91overlapp= ing time = guaranteed for each operations), then that may be an example where it = could make sense. >> and a >> function construct is used only because it is preferable to return an= >> unconstrained type > > Not only. Functions are used when there is a dedicated result/effect = > which > is used as an input for another routine or language construct. Yes, that's the only way to expressions. -- = =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