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/13
Date: 1996-12-13T00:00:00+00:00	[thread overview]
Message-ID: <E2BxrA.6yw@world.std.com> (raw)
In-Reply-To: bbalfour-1112961514160001@stmac0088.std.caci.com


Consider the predefined Ada.Strings.Unbounded.  It may well be
implemented as a controlled type (if your implementation doesn't do GC).
We chose to make it private in the RM.  So you can't extend it, and
override Finalize (or call Finalize directly).  I think that makes sense
in this case -- why would you want to extend this type?  You might use
components of this type.  But extending it seems unlikely.  On the other
hand, there are types that should be visibly controlled -- you want to
extend them, and override the Finalize (etc) ops.

- Bob




      reply	other threads:[~1996-12-13  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
1996-12-11  0:00   ` Brad Balfour
1996-12-13  0:00     ` Robert A Duff [this message]
replies disabled

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