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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ba5a88c05a7ac9bb X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-25 01:09:05 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.cs.univ-paris8.fr!proxad.net!feeder2-1.proxad.net!news9-e.free.fr!not-for-mail From: "Delf" Organization: kill -9 kerrnel.exe Subject: Re: Problem with anonymous arrays Date: Sun, 25 Apr 2004 10:10:34 +0200 User-Agent: Pan/0.13.4 (She had eyes like strange sins.) Message-Id: Newsgroups: comp.lang.ada References: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 25 Apr 2004 10:09:04 MEST NNTP-Posting-Host: 81.56.185.65 X-Trace: 1082880544 news9-e.free.fr 15682 81.56.185.65:32926 X-Complaints-To: abuse@proxad.net Xref: archiver1.google.com comp.lang.ada:7466 Date: 2004-04-25T10:09:04+02:00 List-Id: Le Sun, 25 Apr 2004 00:46:34 +0200, Delf a ecrit: > /CODE/ > ... > N: constant Integer := 4; > > protected Choice is > entry EnterOnRP (I: Integer); > procedure ExitTheRP; > private > WhoCanPass: Integer := -1; > MAXCARS: Integer := 5; > NbCarsOnRP: Integer := 0; > WantToGo: array(0..(N - 1)) of Boolean := (0..(N - 1) => FALSE); > end Choice; > ... > \CODE\ + line entry EnterGiratoire (I: Integer) when NbCarsOnRP = 0 or (NbCarsOnRP > 0 and NbCarsOnRP < MAXCARS and I = WhoCanPass) is But gnatmake says: Giratoire.adb:35:109: "I" is undefined So I can't use I... How to do to counter this error ? Thanks. -- Delf