comp.lang.ada
 help / color / mirror / Atom feed
* Apex problem w/aliased variables
@ 1996-11-13  0:00 paul williams
  1996-11-18  0:00 ` problemes mathematiques koniez tayeb
  0 siblings, 1 reply; 7+ messages in thread
From: paul williams @ 1996-11-13  0:00 UTC (permalink / 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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1996-11-22  0:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-11-13  0:00 Apex problem w/aliased variables paul williams
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

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