From: Samuel Tardieu <sam@ada.eu.org>
To: mheaney@ni.net (Matthew Heaney)
Subject: Re: Is assignment available for access parameters?
Date: 1997/03/26
Date: 1997-03-26T00:00:00+00:00 [thread overview]
Message-ID: <qw6k9mukio7.fsf@gargantua.enst.fr> (raw)
In-Reply-To: mheaney-ya023680002603970130250001@news.ni.net
>>>>> "Matthew" == Matthew Heaney <mheaney@ni.net> writes:
Matthew> Is assignment of an access parameter to an object of a named
Matthew> (general) access type legal? The code below compiles under
Matthew> my compiler (GNAT), but not on others (Rational, Aonix). Who
Matthew> is correct?
With my wavefront version of GNAT, I get:
Compiling: test_p.adb (source file time stamp: 1997-03-26 11:11:05)
7. OTA : P.TA := OA; -- ???
|
>>> expected type "TA" defined at p.ads:6
>>> found type access to "T" defined at line 6
You have to use explicit type conversion into a general access type
(P.TA in your case) to make it work (OTA : P.TA := P.TA (OA);)
Sam
--
Samuel Tardieu -- sam@ada.eu.org
prev parent reply other threads:[~1997-03-26 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-03-26 0:00 Is assignment available for access parameters? Matthew Heaney
1997-03-26 0:00 ` Samuel Tardieu [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox