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!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: Error "exception not permitted here" when putting EXCEPTION in a loop Date: Sat, 18 Jul 2015 12:08:23 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 18 Jul 2015 10:05:41 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="5b7792bbfdd207fe5c19aea2206a9f76"; logging-data="18606"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19esY5UiIijwAFAz1MIvH6R" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 In-Reply-To: Cancel-Lock: sha1:EC3qbpA4/Ap8GPYSMgyZLfAXfb4= Xref: news.eternal-september.org comp.lang.ada:26868 Date: 2015-07-18T12:08:23+02:00 List-Id: On 2015-07-18 10:14, Trish Cayetano wrote: e is my own code (i removed the functions and others)... S orry I am really new to Ada. I actually tried also to put another loop and added declare, begin and end. It hang after I ran. And when I terminated the process, it looks like it ran infinitely in loops. > when you set endGame to true, you are in the *inner* loop. but the *outer* loop tests for endGame. How do you exit the *inner* loop? what purpose has the *inner* loop? When you have the answer, your program will be easy to fix. -- Björn