comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Assignment of Classwide Types
Date: 1998/09/03
Date: 1998-09-03T00:00:00+00:00	[thread overview]
Message-ID: <6sn3av$hds$1@nnrp1.dejanews.com> (raw)
In-Reply-To: 6smnns$2vj$1@nnrp1.dejanews.com

In article <6smnns$2vj$1@nnrp1.dejanews.com>,
  jsanchor@cs5.dasd.honeywell.com wrote:

> type PARENT_TYPE is abstract tagged private;
>
> private
>     type PARENT_TYPE is abstract tagged with

> 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.

You didn't say what compiler or platorm this is on. If that *exact* code with
a trivial test program is giving that behavior, I'd suggest emailing it to
your compiler vendor.

From your comments though, I'm suspicious that you don't really have

   type PARENT_TYPE is new Ada.Finalization.Controlled with....

but then again, it could be that your compiler *always* does an adjust and
finalize, even if the object isn't controlled. Without knowing your compiler
vendor/platform, who's to say?

--
T.E.D.

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




  parent 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 Assignment of Classwide Types jsanchor
1998-09-03  0:00 ` Martin C. Carlisle
1998-09-03  0:00 ` dennison [this message]
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