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.67.23.163 with SMTP id ib3mr2998247pad.45.1444836344264; Wed, 14 Oct 2015 08:25:44 -0700 (PDT) X-Received: by 10.182.116.130 with SMTP id jw2mr32522obb.4.1444836344219; Wed, 14 Oct 2015 08:25:44 -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!news.glorb.com!kq10no21244663igb.0!news-out.google.com!z4ni20877ign.0!nntp.google.com!kq10no18504810igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 14 Oct 2015 08:25:43 -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: <1634898a-7363-4e21-8772-4e17848a70ef@googlegroups.com> Subject: Re: Issue with SPARK 2014 From: Serge Robyns Injection-Date: Wed, 14 Oct 2015 15:25:44 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27975 Date: 2015-10-14T08:25:43-07:00 List-Id: On Tuesday, 13 October 2015 23:40:42 UTC+3, joak...@kth.se wrote: > Dear Serge, > > Please make a compilable example and put the code for example on github. As the code stands now it is not known exactly what Number_Of_Columns and Columns are. > > Best regards, > Joakim Strandberg These are the most important definitions: Number_Of_Columns : constant := 7; First_Column : constant := 1; First_Row : constant := 1; Winning_Move : constant := 4; Nil_Move : constant := 0; type Player_Type is (Nobody, Human, Computer); type Board_Type is private; subtype Move_Range is Natural range Nil_Move .. Number_Of_Columns; type Valid_Move_Range is range First_Column .. Number_Of_Columns; subtype Column_Range is Valid_Move_Range; subtype Row_Range is Valid_Move_Range; type Moves is new Move_Range; type Columns is new Column_Range; type Rows is new Row_Range; Some of these could have been done differently in Ada2012 (but the code dates from 95 days).