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 10.13.221.8 with SMTP id g8mr11426789ywe.33.1459942660625; Wed, 06 Apr 2016 04:37:40 -0700 (PDT) X-Received: by 10.182.24.67 with SMTP id s3mr459226obf.12.1459942660434; Wed, 06 Apr 2016 04:37:40 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!10no665755qgg.1!news-out.google.com!ha2ni191igb.0!nntp.google.com!nt3no8262236igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 6 Apr 2016 04:37:20 -0700 (PDT) In-Reply-To: <3be79ab3-ebc7-4169-9713-d50349662403@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.55.221.67; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 91.55.221.67 References: <3be79ab3-ebc7-4169-9713-d50349662403@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Uninitialized out parameters. From: AdaMagica Injection-Date: Wed, 06 Apr 2016 11:37:40 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Received-Bytes: 1678 X-Received-Body-CRC: 3279627155 Xref: news.eternal-september.org comp.lang.ada:30007 Date: 2016-04-06T04:37:20-07:00 List-Id: Hm, from the point of view of the RM, the RM has nothing to say about warni= ngs - only whether the code is legal or illegal. So giving warnings is up t= o the compiler. Now for scalar variables, the RM says, in mode variables are copied in, out= mode variables are copied out, in out variables are both. So as I understa= nd, even a null procedure with an out parameter does something to the param= eter: it copies out an uninitialized variable (which can have any value wha= tsoever). Language lawyers - please?