comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: numbers as 'generics' parameters
Date: Wed, 21 May 2008 11:32:33 -0400
Date: 2008-05-21T11:32:33-04:00	[thread overview]
Message-ID: <wcc3aob4qr2.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 42mXj.166735$yE1.38263@attbi_s21

"Jeffrey R. Carter" <spam.jrcarter.not@spam.acm.org> writes:

> jhc0033@gmail.com wrote:
>> As far as I can tell, Ada does not allow anything but types as
>> generics parameters, so what would be the approach to use with it?
>
> ARM 12.1 (http://www.adaic.org/standards/05rm/html/RM-12-1.html) lists 4
> kinds of generic formal parameters, only one of which is a type. So you
> clearly haven't done much investigation of Ada.

I don't think it's a good idea to learn Ada from the RM.
Better to use a good textbook.  I like Barnes.

Anyway, it's not a sin to be ignorant of Ada.  And generic formal
objects are a pretty obscure and little-used feature -- MOST generic
formal parameters are indeed types, so it's easy to get the incorrect
impression that that's all there is.

Now that Ada 2005 supports downward closures, even generic formal
subprograms are (or should be) a little-used feature.

- Bob



      reply	other threads:[~2008-05-21 15:32 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-16 17:26 numbers as 'generics' parameters jhc0033
2008-05-16 17:55 ` Adam Beneschan
2008-05-16 19:12   ` John B. Matthews
2008-05-16 18:34 ` jimmaureenrogers
2008-05-16 18:57 ` Gautier
2008-05-16 20:52   ` Maciej Sobczak
2008-05-16 23:09     ` Peter C. Chapin
2008-05-17  7:47     ` Dmitry A. Kazakov
2008-05-17 16:29       ` Maciej Sobczak
2008-05-17 17:34         ` Dmitry A. Kazakov
2008-05-18 13:58           ` Maciej Sobczak
2008-05-18 14:52             ` Dmitry A. Kazakov
2008-05-18 20:37               ` Maciej Sobczak
2008-05-19  9:02                 ` Dmitry A. Kazakov
2008-05-19  5:16             ` Ivan Levashew
2008-05-19  8:26               ` Maciej Sobczak
2008-05-16 20:22 ` Jeffrey R. Carter
2008-05-21 15:32   ` Robert A Duff [this message]
replies disabled

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