comp.lang.ada
 help / color / mirror / Atom feed
From: "Guido Schumacher" <Guido.Schumacher@Informatik.Uni-Oldenburg.DE>
Subject: Q Controlled Types
Date: 1997/06/05
Date: 1997-06-05T00:00:00+00:00	[thread overview]
Message-ID: <5n73uf$m1l@news.Informatik.Uni-Oldenburg.DE> (raw)


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)

I would appreciate any help.

Thank you

Guido
-- 
Guido Schumacher
Carl von Ossietzky Universitaet Oldenburg
Postfach 2503
26111 Oldenburg
Email: Guido.Schumacher@Informatik.Uni-Oldenburg.de
Tel.: +49 441 798 2370
Fax:  +49 441 798 2145





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

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-05  0:00 Guido Schumacher [this message]
1997-06-06  0:00 ` Q Controlled Types Anonymous
1997-06-07  0:00   ` Robert A Duff
1997-06-06  0:00 ` Mark A Biggar
  -- 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