comp.lang.ada
 help / color / mirror / Atom feed
From: "Delf" <abuse@wanadoo.fr>
Subject: Problem with anonymous arrays
Date: Sun, 25 Apr 2004 00:46:34 +0200
Date: 2004-04-25T00:45:05+02:00	[thread overview]
Message-ID: <pan.2004.04.24.22.46.34.167167@wanadoo.fr> (raw)

Hi.
I've got a little problem:

/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\

When I compile, I obtain the following message:
Giratoire.adb:17:17: anonymous arrays not allowed as components

What I have to modify ?
Thanks a lot.

--
Delf



             reply	other threads:[~2004-04-24 22:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-24 22:46 Delf [this message]
2004-04-24 23:26 ` Problem with anonymous arrays Lutz Donnerhacke
2004-04-25  0:29   ` Delf
2004-04-25  8:10 ` Delf
2004-04-25 17:58   ` Lutz Donnerhacke
2004-04-25 18:01   ` Lutz Donnerhacke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox