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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 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!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx15.iad.POSTED!not-for-mail From: Shark8 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:36.0) Gecko/20100101 Thunderbird/36.0a1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Help with an errant 'IF' statement please. References: <0a70a8a3-45fc-440b-999b-f9cfbc6ac7f9@googlegroups.com> <8ecc1fb7-615c-4b7e-83e3-866a830a59a5@googlegroups.com> <347cef2a-6b5e-4f38-b2ec-bb055c5060e4@googlegroups.com> In-Reply-To: <347cef2a-6b5e-4f38-b2ec-bb055c5060e4@googlegroups.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <69Kew.306469$O76.230695@fx15.iad> X-Complaints-To: abuse@teranews.com NNTP-Posting-Date: Sun, 30 Nov 2014 19:23:46 UTC Organization: TeraNews.com Date: Sun, 30 Nov 2014 12:23:43 -0700 X-Received-Bytes: 1863 X-Received-Body-CRC: 1707400615 Xref: news.eternal-september.org comp.lang.ada:23805 Date: 2014-11-30T12:23:43-07:00 List-Id: On 30-Nov-14 07:49, Austin Obyrne wrote: > Thanks for your much appreciated help - am I right in my intentions?. That's really hard to say; any particular construct/usage might be doable but that doesn't mean that it's even good. -- In the case of looping there's perfectly rational cases for a sentinel-value (namely unconstrained input, user input in particular), but that doesn't mean that's the best way to do it: Streams, for example, write the bounds and then the data for items like arrays (which works because when you write those items out the constraints are known). So, we really cannot tell w/o a small compilable example, and explanation of your intent, like Simon said.