comp.lang.ada
 help / color / mirror / Atom feed
From: "Theodore E. Dennison" <dennison@escmail.orl.mmc.com>
Subject: Re: parameterless generics?
Date: 1996/07/12
Date: 1996-07-12T00:00:00+00:00	[thread overview]
Message-ID: <31E64803.41C67EA6@escmail.orl.mmc.com> (raw)
In-Reply-To: 4s48k9$3be$1@mhafn.production.compuserve.com


Brian Gilbert wrote:
> 
> Does anybody have a reason to use a generic (package or
> subprogram) without a parameter?  The language (Ada 83 at least)
> seems to allow it, but everytime the generic is instantiated it
> would produce an identical copy.  Comments?

Well, you could do interesting things with a task declared in such
a generic...

It would also be good implementing "objects" using generic packages.
eg:
A program with several different random number generators, all using 
their own seeds.

There are possibilities.

-- 
T.E.D.          
                |  Work - mailto:dennison@escmail.orl.mmc.com  |
                |  Home - mailto:dennison@iag.net              |
                |  URL  - http://www.iag.net/~dennison         |




  parent reply	other threads:[~1996-07-12  0:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-12  0:00 parameterless generics? Brian Gilbert
1996-07-11  0:00 ` Ray Blaak
1996-07-15  0:00   ` Mark A Biggar
1996-07-11  0:00 ` Laurent Guerby
1996-07-12  0:00 ` Theodore E. Dennison [this message]
1996-07-12  0:00 ` Philip Brashear
1996-07-12  0:00 ` Robert Dewar
1996-07-22  0:00   ` Mats Weber
1996-07-14  0:00 ` Norman H. Cohen
1996-07-15  0:00 ` Chris Papademetrious
1996-07-17  0:00   ` Richard Riehle
1996-07-18  0:00 ` Martin Lorentzon
replies disabled

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