comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
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: <E27n8o.3v9@world.std.com> (raw)
In-Reply-To: mheaney-ya023280000912962054110001@news.ni.net


In article <mheaney-ya023280000912962054110001@news.ni.net>,
Matthew Heaney <mheaney@ni.net> wrote:
>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?

It is a good thing if you want people to be able to extend the type --
they will override Finalize and friends (and the new version should call
the parent version).  If you don't want that, or want to restrict such
type extensions to child packages, then use the second method.

- Bob




  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     ` Robert A Duff [this message]
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         ` Norman H. Cohen
1996-12-11  0:00         ` Brad Balfour
1996-12-10  0:00 ` Jon S Anthony
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