comp.lang.ada
 help / color / mirror / Atom feed
From: Jean-Pierre Rosen <rosen@adalog.fr>
Subject: Re: Cannot initialize entities of limited type?
Date: Fri, 12 Jan 2007 15:23:30 +0100
Date: 2007-01-12T15:23:30+01:00	[thread overview]
Message-ID: <el58oe.9ib.ln@hunter.axlog.fr> (raw)
In-Reply-To: <eo83q9$fpi$1@cernne03.cern.ch>

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



  parent reply	other threads:[~2007-01-12 14:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-12 13:52 Cannot initialize entities of limited type? Maciej Sobczak
2007-01-12 14:04 ` Martin Krischik
2007-01-12 14:28   ` Maciej Sobczak
2007-01-12 15:06     ` Jean-Pierre Rosen
2007-01-12 20:56       ` Simon Wright
2007-01-13 17:39     ` Georg Bauhaus
2007-01-12 19:08   ` Jeffrey Creem
2007-01-12 14:23 ` Jean-Pierre Rosen [this message]
2007-01-12 14:26 ` Jeffrey Creem
2007-01-15 23:53 ` Jeffrey Carter
2007-01-16  8:35   ` Maciej Sobczak
2007-01-16 13:56     ` Martin Krischik
replies disabled

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