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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.50.43.233 with SMTP id z9mr3563853igl.9.1444836238930; Wed, 14 Oct 2015 08:23:58 -0700 (PDT) X-Received: by 10.182.153.199 with SMTP id vi7mr32106obb.16.1444836238910; Wed, 14 Oct 2015 08:23:58 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!news.ripco.com!news.glorb.com!kq10no18504525igb.0!news-out.google.com!z4ni20877ign.0!nntp.google.com!kq10no18504520igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 14 Oct 2015 08:23:57 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=41.222.14.254; posting-account=6m7axgkAAADBKh082FfZLdYsJ24CXYi5 NNTP-Posting-Host: 41.222.14.254 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <128844c2-2f5d-4d91-a267-7f7e05c8ca86@googlegroups.com> Subject: Re: Issue with SPARK 2014 From: Serge Robyns Injection-Date: Wed, 14 Oct 2015 15:23:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27974 Date: 2015-10-14T08:23:57-07:00 List-Id: On Wednesday, 14 October 2015 09:16:17 UTC+3, Simon Wright wrote: > Looks as though you might have problems if Number_Of_Columns is 1. > > Also, your variable J is hidden by the loop variables J. I agree it is not clean to have J declared above, but I needed a loop counter for the J part in a while loop in later the same function. So i don't mind it hidden in the loop. But that way I can keep a consistent The_Board.Board (I, J) constructs. This is how Number_Of_Columns is declared. Number_Of_Columns : constant := 7; I really don't get it. The code runs fine. By reading I believe I've put all controls to avoid incorrect loops. SPARK seems not to agree with me.