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-24 16:26:53 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!easynews.net!newsfeed3.easynews.net!newsfeed.vmunix.org!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Re: Problem with anonymous arrays Date: Sat, 24 Apr 2004 23:26:53 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: References: NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1082849213 3528 217.17.192.34 (24 Apr 2004 23:26:53 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Sat, 24 Apr 2004 23:26:53 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:7458 Date: 2004-04-24T23:26:53+00:00 List-Id: * Delf wrote: > 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; > > When I compile, I obtain the following message: > Giratoire.adb:17:17: anonymous arrays not allowed as components > > What I have to modify ? type Bool_Array is array (0 .. (N-1) of Boolean; protected type Choice is ... WantToGo : Bool_Array := (others => False); end Choice;