comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Ada generics are bad
Date: 1998/04/11
Date: 1998-04-11T00:00:00+00:00	[thread overview]
Message-ID: <dewar.892345837@merv> (raw)
In-Reply-To: 6gm6jc$fbp@newshub.atmnet.net


Chris Green says

<<With "function form" generics, updating and recompiling the generic body
does not obsolete units that instantiate it or depend on instantiations,
and it is possible to deliver libraries that include only object code
for such bodies (this is a key concern for developers of commercial Ada
software such as ourselves, who are wary of releasing more source code
than we absolutely have to).
>>

Very often an approach that works well is to isolate the "generic" parts
of the body, and use common code for the non-generic parts. Look at the
GNAT code for an example of how this is done, in particular, look at
the code for Float_IO. Almost nothing of interest is in the generic itself,
all the "good stuff" is in the common units.

This could be used to "solve" the "problem" of releasing more source code
than you absolutely have to, although from a users point of view, using
libraries where you do not have the source and do not know what is going
on seems pretty dubious. I suppose if the only option you have is to use
closed software of this kind, then the risk may be acceptable. 





  parent reply	other threads:[~1998-04-11  0:00 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-08  0:00 Ada generics are bad Glenden Lee
1998-04-08  0:00 ` Tucker Taft
1998-04-09  0:00 ` Anonymous
1998-04-10  0:00 ` Christopher Green
1998-04-10  0:00   ` Brian Rogoff
1998-04-11  0:00   ` Robert Dewar [this message]
1998-04-13  0:00     ` Christopher Green
1998-04-13  0:00       ` Matthew Heaney
1998-04-13  0:00         ` nabbasi
1998-04-13  0:00           ` future of proprietry source code (was: Ada generics are bad) Fergus Henderson
1998-04-14  0:00             ` David Masterson
1998-04-16  0:00               ` David Kastrup
1998-04-16  0:00                 ` David Masterson
1998-04-17  0:00                   ` David Kastrup
1998-04-17  0:00               ` campo
1998-04-16  0:00             ` Tim Smith
1998-04-17  0:00               ` Thomas Bushnell, n/BSG
1998-04-18  0:00                 ` Bill Gribble
1998-04-20  0:00                   ` Ole-Hjalmar Kristensen
1998-04-21  0:00             ` William Tanksley
1998-04-13  0:00         ` Ada generics are bad Christopher Green
1998-04-14  0:00         ` Robert Munck
1998-04-14  0:00           ` Matthew Heaney
1998-04-15  0:00           ` Jonathan Guthrie
1998-04-14  0:00         ` Al Christians
replies disabled

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