comp.lang.ada
 help / color / mirror / Atom feed
* Assignment of Classwide Types
@ 1998-09-03  0:00 jsanchor
  1998-09-03  0:00 ` dennison
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jsanchor @ 1998-09-03  0:00 UTC (permalink / raw)


Hello Everyone: I have a tagged type declared as

type PARENT_TYPE is abstract tagged private;

private
    type PARENT_TYPE is abstract tagged with
    record
       checksum : INTEGER;
    end record;

    type ACCESS_TO_PARENT_TYPE is access all PARENT_TYPE'class;
---------------------------------------------------------------

  PTR1 : ACCESS_TO_PARENT_TYPE;
  PTR2 : ACCESS_TO_PARENT_TYPE;

 I have PTR1 & PTR2 having access to diff. memory locations where I have
PARENT_TYPE (same tag but diff. data).
   then I say, PTR1.all := PTR2.all;

the compiler does not give any errors, but the assignment does not work.
I looked at the assembly code and it seems that the compiler makes a call to
deep_finalize, deep_adjust but to no effect.

Can someone explain how to get around this problem?
Thank you in advance.
Sincerely,
Jay S.




-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




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

end of thread, other threads:[~1998-09-04  0:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-09-03  0:00 Assignment of Classwide Types jsanchor
1998-09-03  0:00 ` dennison
1998-09-03  0:00 ` Martin C. Carlisle
1998-09-04  0:00 ` Tom Moran

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