comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@alexandria (Jon S Anthony)
Subject: Re: Visible or hidden derivation for controlled types ?
Date: 1997/03/17
Date: 1997-03-17T00:00:00+00:00	[thread overview]
Message-ID: <JSA.97Mar17181701@alexandria> (raw)
In-Reply-To: 332B1F05.31A7@bix.com


In article <332B1F05.31A7@bix.com> Tom Moran <tmoran@bix.com> writes:

> I know of at least two Ada 95 compilers that don't take
>    type T is private;
>    procedure Initialize(X : in out T);
>    ...
> private
>    type T is new Ada.Finalization.Controlled ...
> to mean that the Initialize specified is the Controlled Initialzie for
> T. If this is wrong,

Hmmm, I would have thought that this is correct as the fact that T is
such a derived type is private.

> the meantime it's certainly safer and more likely portable to admit in
> the public part that T is a controlled type.  Why would you want that
> fact to be private, BTW?

?????  I would also think that the "correct" thing to do is place the
Initialize in the private part.


/Jon

-- 
Jon Anthony
Organon Motives, Inc.
Belmont, MA 02178
617.484.3383
jsa@organon.com





  reply	other threads:[~1997-03-17  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-14  0:00 Visible or hidden derivation for controlled types ? Mats Weber
1997-03-15  0:00 ` Tom Moran
1997-03-17  0:00   ` Jon S Anthony [this message]
1997-03-16  0:00 ` Matthew Heaney
1997-03-16  0:00   ` Robert Dewar
replies disabled

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