From: paul williams <paul_williams@itd.sterling.com>
Subject: Apex problem w/aliased variables
Date: 1996/11/13
Date: 1996-11-13T00:00:00+00:00 [thread overview]
Message-ID: <328A5934.1EED@itd.sterling.com> (raw)
We are developing a large scientific application using Ada95
with the Rational Apex tool. Our design depends heavily on being
able to take advantage of the new access mechanism for
non-allocated variables. However, the Apex analyzer reports an
error when attempting to assign the access attribute of an
aliased variable to a pointer that is appropriately declared for
the entire class. See code sample followed by error report
below. Is anyone else using Apex and having this problem? If so,
have you determined a suitable workaround? I'm told that
Rational knows about the problem but has no patches. Any
suggestions?
package Test is
type Object is tagged record
Component : Integer;
end record;
type Object_Ptr is access all Object'Class;
type My_Object is new Object with null record;
The_Object : aliased My_Object;
The_Ptr : Object_Ptr := The_Object'Access;
end Test;
16:35:46 >>> THE_PTR : OBJECT_PTR := THE_OBJECT'ACCESS;
16:35:46 *** THE_OBJECT is not a value of OBJECT'CLASS
Thanks in advance for any assistance.
Regards,
Paul
next reply other threads:[~1996-11-13 0:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-13 0:00 paul williams [this message]
1996-11-18 0:00 ` problemes mathematiques koniez tayeb
1996-11-18 0:00 ` Laurent Guerby
[not found] ` <01bbd5f1$b994c530$262a6282@cln49ae>
1996-11-21 0:00 ` Keith Thompson
1996-11-21 0:00 ` Samuel Tardieu
1996-11-22 0:00 ` Keith Thompson
1996-11-22 0:00 ` lecomteg
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox