comp.lang.ada
 help / color / mirror / Atom feed
From: "Ehud Lamm" <mslamm@mscc.huji.ac.il>
Subject: Re: Ada Generic vs. C++ Templates
Date: Wed, 4 Apr 2001 20:30:39 +0300
Date: 2001-04-04T20:30:39+03:00	[thread overview]
Message-ID: <9afpi0$irv$1@news.huji.ac.il> (raw)
In-Reply-To: MPG.1532ab1cc6ed7b4989682@news.chello.at


Josef Widder <e9625114@student.tuwien.ac.at> wrote in message
news:MPG.1532ab1cc6ed7b4989682@news.chello.at...
> As project for university i'd like to compare the power of the Ada
> Generic construct relative to C++ templates.
>
> Could someone please tell me where to find good articles on the generic
> construct ?
>


In fact this is a pretty large subject. I'd restrict it to something more
managable (like "automatic instantiation vs. explicit instantiation" or the
way generic paramaters are specified etc.).

Some useful (I think) references are:
* the Ada83 Rationale chapter on generics
* Alexander Stepanov writings and intervies (some are available on the net,
and I gave URLs in this newsgroup a couple of times). He discusses some this
he considers shortcomings in Ada, as opposed to C++, as related to creating
the STL.
* You may want to check specific uses. The are several examples of C++
temlate libraries that are hard if not impossible to mimic in Ada. Esp.
attempts at providing high-order programming facilties. (I don't have a URL
handy, but a search at http://lambda.weblogs.com should get you started. You
may also raise your question at that site).
* Another thing that may be interesting is to check specific programming
styles. For example Ada's formal package paramters are a bit like using
classes to specify generic parameters, but they induce a different
programming style.

Any way, as I said, this is really a big subject. I suggest you check some
of these and focus your research on something a bit more specific. (Or more
general, like paramateric polymorphism in general).

I'd be glad to help. Email me or use the above mentioned site. (Or here, of
course).

Good luck,

Ehud Lamm





  parent reply	other threads:[~2001-04-04 17:30 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-02 14:28 Ada Generic vs. C++ Templates Josef Widder
2001-04-02 14:38 ` Ted Dennison
2001-04-02 20:57   ` Francois Godme
2001-04-02 21:26     ` Ted Dennison
2001-04-03  0:53       ` David Starner
2001-04-04  7:12         ` Pascal Obry
2001-04-04 12:37         ` Stephen Leake
2001-04-04 14:16         ` Ted Dennison
2001-04-03 22:09       ` Francois Godme
2001-04-04 16:17         ` Brian Rogoff
2001-04-04 16:21         ` Jeffrey Carter
2001-04-04 16:49           ` Ayende Rahien
2001-04-05 22:31             ` Colin Paul Gloster
2001-04-04 16:56           ` Ted Dennison
2001-04-04 17:02             ` Ayende Rahien
2001-04-05  0:35         ` James Rogers
2001-04-05  3:38           ` DuckE
2001-04-05 14:25             ` Marin David Condic
2001-04-05 20:32               ` Robert A Duff
2001-04-05 21:04                 ` Marin David Condic
2001-04-06 16:19                   ` Robert A Duff
2001-04-06  0:37             ` James Rogers
2001-04-06 10:38               ` Colin Paul Gloster
2001-04-11  3:33                 ` Stephen Howe
2001-04-11 14:33                   ` Colin Paul Gloster
2001-04-04 13:24 ` Georg Bauhaus
2001-04-05  8:46   ` Jean-Marc Bourguet
2001-04-04 17:30 ` Ehud Lamm [this message]
2001-04-05 22:04   ` Colin Paul Gloster
2001-04-10  7:03     ` Simon Wright
2001-04-13 14:11       ` Pat Rogers
2001-04-17  8:27         ` Colin Paul Gloster
2001-04-08  5:00 ` Lao Xiao Hai
replies disabled

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