comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@mitre-bedford.arpa  (Robert I. Eachus)
Subject: Re: Anyone else actually like Ada?
Date: 27 Jul 93 23:05:42 GMT	[thread overview]
Message-ID: <EACHUS.93Jul27180542@spectre.mitre.org> (raw)

In article <1993Jul27.155947.11409@tinton.ccur.com> cjh@tinton.ccur.com (Christ
opher J. Henrich) writes:

   > In Ada83 you can achieve some of the same goals, by careful use of
   > generic units with subprogram formals. The decision about what code
   > to bind to the "formals" must be made at compilation time, and
   > the syntax of generic units makes it all seem much more rigid.

   For the one-millionth time...elaboration of generic instantiations
occurs at RUN-TIME.  It is always the case that a compiler can
determine at compile time the possible subprograms which will match a
particular generic formal parameter, but that in no way limits the
usefulness of the feature.  For example if you add:

   function "+"(L,R: My_Type) return My_Type is <>;

   at the end of a generic formal part with a generic formal type
My_Type, this will match the plus operator for the actual type which
is visible at the point of instantiation, instead of the predefined
operator for the type.

   Also most good Ada compilers do support calling of subprograms by
their address, and among those which do, the feature mixes cleanly
with generics.  What Ada 9X will add is the safety of parameter and
result profile matching.

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...

             reply	other threads:[~1993-07-27 23:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-07-27 23:05 Robert I. Eachus [this message]
  -- strict thread matches above, loose matches on Subject: below --
1993-07-28 16:56 Anyone else actually like Ada? Wes Groleau X7574
1993-07-27 15:59 Christopher J. Henrich
1993-07-27 14:38 david.c.willett
1993-07-26 22:27 Richard Dye
1993-07-26 21:38 Don Tyzuk
1993-07-26 18:57 Laurence VanDolsen
1993-07-26 16:34 Germany.EU.net!mcsun!julienas!enpc!marronnier!re
1993-07-26 15:51 cis.ohio-state.edu!news.sei.cmu.edu!ajpo.sei.cmu.edu!wellerd
1993-07-26 13:52 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-07-26 13:45 cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!howland.
1993-07-24 22:00 Tim Barrios
1993-07-24  4:02 cis.ohio-state.edu!math.ohio-state.edu!darwin.sura.net!seas.gwu.edu!mfeld
1993-07-23 23:21 Kenneth Anderson
1993-07-23 22:53 david.c.willett
replies disabled

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