comp.lang.ada
 help / color / mirror / Atom feed
From: mab@dst1.wdl.loral.com (Mark A Biggar)
Subject: Re: Q Controlled Types
Date: 1997/06/06
Date: 1997-06-06T00:00:00+00:00	[thread overview]
Message-ID: <5n9eq3$6m9@wdl1.wdl.lmco.com> (raw)
In-Reply-To: 5n73uf$m1l@news.Informatik.Uni-Oldenburg.DE


In article <5n73uf$m1l@news.Informatik.Uni-Oldenburg.DE> "Guido Schumacher" <Guido.Schumacher@Informatik.Uni-Oldenburg.DE> writes:
>Is there a possibility to distinguish two different kinds of situations
>in which Finalize can be called from within the body of Finalize?
>In other words, is it possible to treat the finalization of an object differently,
>depending on the context in which it is performed?
>1. Calling of Finalize as part of an assignment operation
>2. Finalize is called before the object is destroyed (and no copy is performed)
>declare
>  V: CT; -- type CT is new controlled with ...
>begin 
>  ...
>  V := E;    -- (1)
>  ...
>end;         -- (2)

It would help if you told us WHY you need to do this, although 
that may be moot as I don't htink that there is any way to 
distinguish between those cases.

--
Mark Biggar
mab@wdl.lmco.com






  parent reply	other threads:[~1997-06-06  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-05  0:00 Q Controlled Types Guido Schumacher
1997-06-06  0:00 ` Anonymous
1997-06-07  0:00   ` Robert A Duff
1997-06-06  0:00 ` Mark A Biggar [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-06-13  0:00 Guido Schumacher
1997-06-14  0:00 ` Robert A Duff
replies disabled

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