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.1 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,HK_RANDOM_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!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.ada Subject: Re: Help with an errant 'IF' statement please. Date: Sun, 30 Nov 2014 11:56:29 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <0a70a8a3-45fc-440b-999b-f9cfbc6ac7f9@googlegroups.com> <8ecc1fb7-615c-4b7e-83e3-866a830a59a5@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 30 Nov 2014 11:56:29 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="13921"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18wBaqQTxhIzXmjb3lcSxOY7Zv3C8fMpi4=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:VEgwmJC7dtI83i/QRuRVrz7Y6AM= Xref: news.eternal-september.org comp.lang.ada:23792 Date: 2014-11-30T11:56:29+00:00 List-Id: On Sat, 29 Nov 2014 18:16:35 -0800, Austin Obyrne wrote: > This is the relevant source code at the very start of the program in > question, > > Total := Total+1; Ada.Text_IO.Get(Item => NextChar); > Image(Total):= NextChar; Yes, but when you post that in isolation, we have no idea where to place it in the code you originally posted. When you say "at the very start" do you mean before the LOOP is declared, or do you mean inside the loop after the exit condition is declared, or do you mean inside the loop before the exit condition is declared, or something else? We're guessing. What's Image? Is it relevant to reproducing the problem? What about all the IO? How much of that is your troubleshooting, and how much is actually relevant to the problem? Please help us to help you! -- Denis McMahon, denismfmcmahon@gmail.com