comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Controlled types in local generics?
Date: 1999/12/31
Date: 1999-12-31T00:00:00+00:00	[thread overview]
Message-ID: <84ik6r$hp2$1@nnrp1.deja.com> (raw)
In-Reply-To: 386BB71D.CB7920FD@telepath.com

In article <386BB71D.CB7920FD@telepath.com>,
  Ted Dennison <dennison@telepath.com> wrote:
> As near as I can tell, there's no way around it.

One general approach that is typically used is to include a
controlled component in the type, rather than making the
entire structure controlled. Then the finalize routine
for that component can do whatever it needs to do. Just
think of what you would have to do if the type was derived
from some other tagged type (remember no direct MI in Ada :-)

But there are many other ways to address this in a specific
instance.

That's why I really don't consider this as a fatal flaw, merely
a minor inconvenience.


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~1999-12-31  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-12-30  0:00 Controlled types in local generics? Ted Dennison
1999-12-30  0:00 ` Robert Dewar
1999-12-30  0:00   ` Ted Dennison
1999-12-31  0:00     ` Robert Dewar [this message]
1999-12-31  0:00       ` Ted Dennison
1999-12-30  0:00 ` Mats Weber
1999-12-30  0:00   ` Robert Dewar
1999-12-30  0:00   ` Ted Dennison
1999-12-30  0:00 ` Florian Weimer
1999-12-30  0:00 ` Robert Dewar
1999-12-30  0:00   ` Gautier
1999-12-30  0:00     ` Ted Dennison
1999-12-30  0:00 ` Simon Wright
replies disabled

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