From: jsanchor@cs5.dasd.honeywell.com
Subject: Assignment of Classwide Types
Date: 1998/09/03
Date: 1998-09-03T00:00:00+00:00 [thread overview]
Message-ID: <6smnns$2vj$1@nnrp1.dejanews.com> (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
next reply other threads:[~1998-09-03 0:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-09-03 0:00 jsanchor [this message]
1998-09-03 0:00 ` Assignment of Classwide Types dennison
1998-09-03 0:00 ` Martin C. Carlisle
1998-09-04 0:00 ` Tom Moran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox