From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a37:a34a:: with SMTP id m71mr3464478qke.490.1625288358782; Fri, 02 Jul 2021 21:59:18 -0700 (PDT) X-Received: by 2002:a25:690e:: with SMTP id e14mr3564071ybc.277.1625288358545; Fri, 02 Jul 2021 21:59:18 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 2 Jul 2021 21:59:18 -0700 (PDT) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=2601:193:4101:a3a0:d572:63c2:a006:dae8; posting-account=1tLBmgoAAAAfy5sC3GUezzrpVNronPA- NNTP-Posting-Host: 2601:193:4101:a3a0:d572:63c2:a006:dae8 References: <69a59fdc-72bb-4202-99fc-d776530de653n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <0cc35778-1d06-4e7d-853c-498735faf627n@googlegroups.com> Subject: Re: calling function but ignoring results From: Matt Borchers Injection-Date: Sat, 03 Jul 2021 04:59:18 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:62319 List-Id: Thanks for the feedback. I guess I have to live with five lines to accompl= ish what one should do regardless of the numerous variety of ways to accomp= lish this. I mostly appreciate the wordiness of Ada for the clarity it off= ers to the code maintainers, but in some cases the extra wordiness offers n= othing. Related to this, I really appreciate the new parenthesized expressions as i= t offers a clean way to declare simple functions. GNAT 21.2 was just relea= sed today and includes declare expressions. I don't have the compiler yet,= but I wonder if this would work: procedure FOO( x, y ) is (declare b : BOOLEAN :=3D foo( x, y )); but it seems likely that an expression returns a value and would not be all= owed in this instance.