From: jsa@alexandria (Jon S Anthony)
Subject: Re: How to overload assignment in Ada 95?
Date: 1996/12/10
Date: 1996-12-10T00:00:00+00:00 [thread overview]
Message-ID: <JSA.96Dec10161923@alexandria> (raw)
In-Reply-To: 58aclh$ssd@gaia.cc.gatech.edu
In article <mheaney-ya023280000912962054110001@news.ni.net> mheaney@ni.net (Matthew Heaney) writes:
> Does anyone have a rule of thumb for when a controlled type should publicly
> derive from type Ada.Finalization.Controlled? For example
>
> with Ada.Finalization;
> ...
> package Unbounded_Stacks is
>
> type Unbounded_Stack is new Ada.Finalization.Controlled with private;
> ...
>
> versus
>
> with Ada.Finalization;
> ...
> package Unbounded_Stacks is
>
> type Unbounded_Stack is private;
> ...
> private
>
> type Unbounded_Stack is new Ada.Finalization.Controlled with
> record ... end record;
> ...
>
> In the former case, clients of the Unbounded_Stack have direct visibility
> to the operations Initialize, Finalize, and Adjust. When is this a good
> thing? A bad thing?
"Never" (scare quotes just in case there _might_ be some odd case
where it would make sense...)
/Jon
--
Jon Anthony
Organon Motives, Inc.
Belmont, MA 02178
617.484.3383
jsa@organon.com
next prev parent reply other threads:[~1996-12-10 0:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-06 0:00 How to overload assignment in Ada 95? Christopher D Carothers
1996-12-07 0:00 ` Robert Dewar
1996-12-09 0:00 ` Brad Balfour
1996-12-09 0:00 ` Matthew Heaney
1996-12-10 0:00 ` Brad Balfour
1996-12-10 0:00 ` Larry Kilgallen
1996-12-11 0:00 ` Brad Balfour
1996-12-11 0:00 ` Larry Kilgallen
[not found] ` <01bbe6dc$6feb3620$829d6482@joy.ericsson.se>
1996-12-11 0:00 ` Brad Balfour
1996-12-11 0:00 ` Norman H. Cohen
1996-12-10 0:00 ` Robert A Duff
1996-12-10 0:00 ` Jon S Anthony [this message]
1996-12-11 0:00 ` Brad Balfour
1996-12-13 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