From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Q: on redefinition of "=
Date: 1996/04/02
Date: 1996-04-02T00:00:00+00:00 [thread overview]
Message-ID: <Dp8wn3.B1x@world.std.com> (raw)
In-Reply-To: 4jrlluINN15b@thalamus.cis.ohio-state.edu
In article <4jrlluINN15b@thalamus.cis.ohio-state.edu>,
david scott gibson <dgibson@thalamus.cis.ohio-state.edu> wrote:
>As I mentioned in my post, I'm painfully aware of the negative
>implications of this strategy. Unfortunately there is a mismatch
>between Ada and the language I'm trying to map to Ada. When I import
>some type as a generic parameter, I need to know that the instance
>gets a valid representation of that type. With Ada's scalars, this is
>impossible.
You seem to imply that you want initialization, but not necessarily
finalization.
It seems to me that it wouldn't be hard for an implementation to
special-case those controlled types that have initialization, but not
finalization. Most of the cost comes from the finalization support.
Of course, that doesn't imply that this optimization is worthwhile --
I'm not sure how many controlled types, outside your application, would
benefit.
Also, a plain old (non-controlled) record type can have automatic
initialization for its components.
- Bob
next prev parent reply other threads:[~1996-04-02 0:00 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-30 0:00 Q: on redefinition of "= david scott gibson
1996-04-01 0:00 ` Tucker Taft
1996-04-01 0:00 ` david scott gibson
1996-04-01 0:00 ` Robert Dewar
1996-04-02 0:00 ` Mike Young
1996-04-02 0:00 ` Robert Dewar
1996-04-02 0:00 ` david scott gibson
1996-04-02 0:00 ` Robert A Duff [this message]
1996-04-02 0:00 ` david scott gibson
1996-04-02 0:00 ` Robert A Duff
1996-04-02 0:00 ` david scott gibson
1996-04-02 0:00 ` Robert Dewar
1996-04-03 0:00 ` Tucker Taft
1996-04-01 0:00 ` Robert A Duff
1996-04-01 0:00 ` david scott gibson
1996-04-01 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