comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Sharing generic bodies across instantiations.
Date: Tue, 03 Aug 2010 10:31:43 -0400
Date: 2010-08-03T10:31:43-04:00	[thread overview]
Message-ID: <wccmxt3u5rk.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: i37vg4$c8p$1@munin.nbi.dk

"Randy Brukardt" <randy@rrsoftware.com> writes:

> I have been very vigilant to preserve the ability for generic sharing in the 
> Ada Standard. (It's something that would be very easy to lose because of 
> some obscure combination of features.) I can't say for sure that I have kept 
> every such case out of the Standard, but there is agreement that at least 
> limited sharing (when the parameters are "similar enough") ought to be a 
> permitted implementation. "Universal sharing" (where there only one body for 
> each generic), as used in Janus/Ada, is more controversal (but is still 
> allowed by Ada 2005).

Like Randy, I am in favor of retaining the ability to share generic body
code (universal or otherwise) in Ada.  I am not in favor of trying
to make universal sharing efficient at run time -- that's not
possible.  It's a trade-off -- it may make compile time faster,
at the expense of run time.

It is not feasible to share generic spec code.

- Bob



  reply	other threads:[~2010-08-03 14:31 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27  0:51 Sharing generic bodies across instantiations Peter C. Chapin
2010-07-27  3:01 ` Gene
2010-07-27  6:55 ` AdaMagica
2010-07-27 11:29   ` Ludovic Brenta
2010-07-27 14:10     ` Tero Koskinen
2010-07-27 10:51 ` Martin
2010-07-27 20:06 ` anon
2010-07-27 22:23   ` Peter C. Chapin
2010-07-28  7:59     ` Maciej Sobczak
2010-07-28  9:28       ` Dmitry A. Kazakov
2010-07-28 12:55         ` Maciej Sobczak
2010-07-28 13:16           ` Dmitry A. Kazakov
2010-07-28 19:48             ` Maciej Sobczak
2010-07-29  8:03               ` Dmitry A. Kazakov
2010-07-29 14:02                 ` Maciej Sobczak
2010-07-29 14:40                   ` Dmitry A. Kazakov
2010-07-29 20:27                     ` Maciej Sobczak
2010-07-30  9:09                       ` Dmitry A. Kazakov
2010-07-30 12:31                         ` Maciej Sobczak
2010-07-30 14:59                           ` Dmitry A. Kazakov
2010-08-03  3:02                           ` Randy Brukardt
2010-08-03 14:37                             ` Robert A Duff
2010-08-03  2:47                         ` Randy Brukardt
2010-07-28 20:01             ` Keith Thompson
2010-07-29  7:46               ` Dmitry A. Kazakov
2010-07-28 11:27       ` Peter C. Chapin
2010-07-28 13:10         ` Maciej Sobczak
2010-07-28 16:32           ` Peter C. Chapin
2010-07-28 19:30             ` Robert A Duff
2010-07-28 20:03             ` Maciej Sobczak
2010-07-28 11:47     ` anon
2010-08-03  2:38     ` Randy Brukardt
2010-08-03 14:31       ` Robert A Duff [this message]
2010-07-28  0:55   ` Keith Thompson
2010-07-28  8:42     ` Markus Schoepflin
2010-07-28 11:16     ` anon
replies disabled

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