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,8fd9e333acefd8a3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.202.37 with SMTP id kf5mr14334345pbc.7.1334154919200; Wed, 11 Apr 2012 07:35:19 -0700 (PDT) Path: r9ni44279pbh.0!nntp.google.com!news1.google.com!goblin3!goblin2!goblin.stu.neva.ru!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: Question about Spark_IO Date: Wed, 11 Apr 2012 16:35:16 +0200 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: +t7c7jCSQj9IovVtBsjBGQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.62 (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: 2012-04-11T16:35:16+02:00 List-Id: Le Mon, 09 Apr 2012 00:07:48 +0200, Peter C. Chapin = a =C3=A9crit: > I'm doing something like this to close a file using Spark_IO > > Spark_IO.Close(Input, Input_Status); > if Input_Status /=3D Spark_IO.Ok then ... > > The Examiner says there is a flow error with the first line because th= e = > assignment to Input is "ineffective." This is because it is an 'in out= ' = > parameter and nothing is being done with the returned value. May be SPARK should have a notion of final state. This could be explicit= , = which would be cleaner than locally disabling control flow. -- = =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