comp.lang.ada
 help / color / mirror / Atom feed
From: john.mccabe@emrad.com.nospam (John McCabe)
Subject: Re: (elementary question) Test on type ?
Date: Wed, 05 Sep 2001 09:16:57 GMT
Date: 2001-09-05T09:16:57+00:00	[thread overview]
Message-ID: <3b95ed13.5517353@news.demon.co.uk> (raw)
In-Reply-To: mailman.999626164.17016.comp.lang.ada@ada.eu.org

Frank

I believe you are correct here, that makes sense. As I mentioned, I'm
nor using Ada any more so what I was saying couldn't be relied on (but
hopefully was just a pointer in the right direction :-)

On Tue, 4 Sep 2001 13:55:27 -0400, "Beard, Frank" 
<beardf@spawar.navy.mil> wrote:

>I agree with what John's saying about "Generics are the place to do
>identical stuff ...", but I don't think you need to pass overloaded
>subprograms and some enumeration types to do specifics.  The generic
>formal subprograms are for the specific stuff.  So, I think all you
>would need is the following (from his original post):
>
>-- specification :
>generic
>  type T is (<>);
>  with procedure Do_Something (Item : in out T);
>  with function Specific_Stuff (Item : T) return Float;
>function F(X : T) return Float;


Best Regards
John McCabe



  reply	other threads:[~2001-09-05  9:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-04 17:55 (elementary question) Test on type ? Beard, Frank
2001-09-05  9:16 ` John McCabe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-09-04  8:41 Reinert Korsnes
2001-09-04  9:18 ` David C. Hoos, Sr.
2001-09-04  9:29   ` Reinert Korsnes
2001-09-04 11:02     ` Jacob Sparre Andersen
2001-09-04 11:05       ` Reinert Korsnes
2001-09-04 11:39         ` John McCabe
2001-09-04 13:30         ` Marin David Condic
2001-09-04 14:07           ` Ted Dennison
2001-09-04 14:48             ` Marin David Condic
2001-09-04 18:35               ` Mark Biggar
2001-09-04 19:33                 ` Marin David Condic
2001-09-04 14:15         ` Ted Dennison
2001-09-05  9:14           ` John McCabe
2001-09-05 14:19             ` Ted Dennison
2001-09-05 16:24               ` John McCabe
2001-09-05 18:33               ` Ehud Lamm
2001-09-06  9:36           ` Reinert Korsnes
replies disabled

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