From: Georg Bauhaus <bauhaus@arcor.de>
Subject: Re: Cannot initialize entities of limited type?
Date: Sat, 13 Jan 2007 18:39:55 +0100
Date: 2007-01-13T18:38:06+01:00 [thread overview]
Message-ID: <1168709994.1394.17.camel@localhost> (raw)
In-Reply-To: <eo85va$gp2$1@cernne03.cern.ch>
On Fri, 2007-01-12 at 15:28 +0100, Maciej Sobczak wrote:
> > Update your compiler or use:
> >
> > procedure Constructor (X: in out T);
>
> OK, I will try this for the time being.
>
FWIW, a somewhat indirect method of guaranteed initialisation
can can use a constructor function that
- takes an access to a limited object
- returns one component of the object
type T is limited record
data : Integer := Constructor(T'access);
-- ...
end record;
If everything that Constructor needs is in scope, this should do
the trick.
next prev parent reply other threads:[~2007-01-13 17:39 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 [this message]
2007-01-12 19:08 ` Jeffrey Creem
2007-01-12 14:23 ` Jean-Pierre Rosen
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