comp.lang.ada
 help / color / mirror / Atom feed
From: Mats.Weber@elca-matrix.ch (Mats Weber)
Subject: Re: parameterless generics?
Date: 1996/07/22
Date: 1996-07-22T00:00:00+00:00	[thread overview]
Message-ID: <Mats.Weber-2207961524460001@mlma27.elca-matrix.ch> (raw)
In-Reply-To: dewar.837149427@schonberg


>Such generics are often very useful, and very common in Ada code. You
>missed one critical point. Each instantiation gets its own set of
>package level variables.
>
>For example a random number generic could read
>
>generic
>function random return float;
>
>and each instance would have a separate seed

I think you need a package to accomplish this.




  reply	other threads:[~1996-07-22  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
1996-07-12  0:00 ` Robert Dewar
1996-07-22  0:00   ` Mats Weber [this message]
1996-07-12  0:00 ` Philip Brashear
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