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,31b3d1f7b3516357 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!proxad.net!proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Cannot initialize entities of limited type? Date: Fri, 12 Jan 2007 15:23:30 +0100 Organization: Adalog Message-ID: References: NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1168614068 19309 195.25.228.57 (12 Jan 2007 15:01:08 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 12 Jan 2007 15:01:08 +0000 (UTC) User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) In-Reply-To: Xref: g2news2.google.com comp.lang.ada:8117 Date: 2007-01-12T15:23:30+01:00 List-Id: Maciej Sobczak a �crit : > I got lost. What's wrong in the code above? > As the message says: you cannot initialize an entity of a limited type. In Ada95, initialization is considered an assignment, and assignments are prohibited for limited types (that's what limited types are about). This has changed in Ada 2005, initialization is now allowed (but of course, assignment is not). -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr