From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: calling function but ignoring results Date: Tue, 29 Jun 2021 21:52:37 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <69a59fdc-72bb-4202-99fc-d776530de653n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 29 Jun 2021 19:52:38 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="c6c39de7713edb046dd370a1aa3c147e"; logging-data="1559"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JMIIS4koa5PwdxPcVCUpYE1p7g3TlQUg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 Cancel-Lock: sha1:OSk4Sg8D8Y71KwXVBo/RX50Epd4= In-Reply-To: <69a59fdc-72bb-4202-99fc-d776530de653n@googlegroups.com> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:62299 List-Id: On 6/29/21 9:25 PM, Matt Borchers wrote: > It is not very often that ignoring a function result is okay, but I have run across many instances of the following block structure in code over the years: > > declare > dont_care : BOOLEAN; > begin > dont_care := foo( x, y ); > end; This sort of thing usually indicates a design problem. > Is there a Ada 202x feature to support calling functions and ignoring the result? If you want to use a language that allows this, then you probably shouldn't be developing S/W. -- Jeff Carter "Blessed is just about anyone with a vested interest in the status quo." Monty Python's Life of Brian 73