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=-1.5 required=3.0 tests=BAYES_05,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Code flow control Date: Fri, 15 Oct 2021 19:53:06 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 15 Oct 2021 17:53:07 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="d7c6f0aaa14e9d61cc9d2d9fdf35d1cb"; logging-data="31357"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX198F7hVjmRLMsS3dTJqVGl4vAtYvxQH8Qk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cancel-Lock: sha1:r+cNkO/NjcOLcm8B1ZPU5WPzyy4= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63010 List-Id: On 10/15/21 5:08 PM, Kevin Chadwick wrote: > > I'm sure I could quickly write a shell script easily enough for a specific design as in if keyword appears once but not again within x lines then shout at me but I am wondering if I am missing a tool or better practice before I do so? What you're talking about is result codes. Exceptions exist because of problems people encountered with result codes. Using result codes when you have exceptions is like using conditional go-tos when you have if statements. So, yes, there is better practice. It's called exceptions. -- Jeff Carter "I'll get broads up here like you wouldn't believe. Swingers. Freaks. Nymphomaniacs. Dental hygienists." Play It Again, Sam 125