From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1b5fd0c8f03e0168,start X-Google-Attributes: gid103376,public From: jsanchor@cs5.dasd.honeywell.com Subject: Assignment of Classwide Types Date: 1998/09/03 Message-ID: <6smnns$2vj$1@nnrp1.dejanews.com>#1/1 X-Deja-AN: 387541022 X-Http-Proxy: 1.0 x5.dejanews.com:80 (Squid/1.1.22) for client 207.199.90.141 Organization: Deja News - The Leader in Internet Discussion X-Article-Creation-Date: Thu Sep 03 18:38:52 1998 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.06 [en] (X11; U; SunOS 5.5.1 sun4m) Date: 1998-09-03T00:00:00+00:00 List-Id: 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