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 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.16.199 with SMTP id i7mr18596108obd.44.1459857769915; Tue, 05 Apr 2016 05:02:49 -0700 (PDT) X-Received: by 10.182.246.104 with SMTP id xv8mr376816obc.1.1459857769841; Tue, 05 Apr 2016 05:02:49 -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!news.glorb.com!nt3no7954671igb.0!news-out.google.com!u9ni540igk.0!nntp.google.com!gy3no339788igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 5 Apr 2016 05:02:49 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:7f3:dcd0:f806:212b:2dfc:b2eb; posting-account=DQbqYQoAAACn8hHn2LmG2aF7Mhbxl_Lf NNTP-Posting-Host: 2a02:120b:7f3:dcd0:f806:212b:2dfc:b2eb User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <3be79ab3-ebc7-4169-9713-d50349662403@googlegroups.com> Subject: Uninitialized out parameters. From: ahlan@marriott.org Injection-Date: Tue, 05 Apr 2016 12:02:49 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:29990 Date: 2016-04-05T05:02:49-07:00 List-Id: Hi, Is this a GNAT (GPL-2015) bug or my not understanding Ada? I was surprised that I could compile procedure Test (V : out Positive) is null; and even more by the results of calling the procedure V : Positive; begin Test (V); Ada.Text_IO.Put_Line ("V:" & V'img); The value zero is output, which because V is positive should be impossible. I would have thought that null procedures with out parameters would fail to compile. Opinions anyone? MfG Ahlan