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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e4042699db4db63b X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!news2.glorb.com!feeder.erje.net!news-1.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Newbie question Date: Sat, 21 Mar 2009 18:22:09 +0000 Message-ID: References: <49b90e2d$0$2847$ba620e4c@news.skynet.be> <49c52d2f$0$2856$ba620e4c@news.skynet.be> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net CZbkYETYrXfx59ApVyGkGgUj9YnDwmaKGEqQ5A1cDcuQuB2Rhz Cancel-Lock: sha1:HZsXhtfjsb1AZ9eZdZZ4lca5HeU= User-Agent: Microsoft-Entourage/12.14.0.081024 Thread-Topic: Newbie question Thread-Index: AcmqUfI+gAN7yHFjvUizw7gVg8QuLg== Xref: g2news2.google.com comp.lang.ada:5180 Date: 2009-03-21T18:22:09+00:00 List-Id: On 21/03/2009 18:08, in article 49c52d2f$0$2856$ba620e4c@news.skynet.be, "Olivier Scalbert" wrote: > Hi all, > > I have write some more chess code, and I have another question ! > > Code can be browsed there: > http://scalbert.dyndns.org/adachess/ > > Inside board.adb there is a procedure: > > Move_King(Board: Board_T; > Color: Color_T; > Moves_List: in out Moves_List_T; > From: Position_T) is > > Inside this procedure, I have something strange, line 39. > > if Col > 1 then -- ERROR should be From.Col > ... > > should be: > > if From.Col > 1 then > .... > > I do not understand how this code can compile, because Col is not > defined there. Perhaps it is because of the way I call it ? > You said: Ada.Text_IO; so you are evaluating Ada.Text_IO.Col > 1 -- Bill Findlay chez blueyonder.co.uk