From: guerby@gnat.com (Laurent Guerby)
Subject: Re: parameterless generics?
Date: 1996/07/11
Date: 1996-07-11T00:00:00+00:00 [thread overview]
Message-ID: <ws9afx66v7d.fsf@schonberg.cs.nyu.edu> (raw)
In-Reply-To: 4s48k9$3be$1@mhafn.production.compuserve.com
Brian> Does anybody have a reason to use a generic (package or
Brian> subprogram) without a parameter? The language (Ada 83 at
Brian> least) seems to allow it, but everytime the generic is
Brian> instantiated it would produce an identical copy. Comments?
^^^^^^^^^^^^^^
... of the code, not of the variables:
generic
package P is
X : Integer;
end P;
with P;
package P1 is new P;
with P;
package P2 is new P;
Now P1.X and P2.X are two differents variables.
--
Laurent Guerby <guerby@gnat.com>, Team Ada.
"Use the Source, Luke. The Source will be with you, always (GPL)."
next prev parent reply other threads:[~1996-07-11 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 [this message]
1996-07-12 0:00 ` Robert Dewar
1996-07-22 0:00 ` Mats Weber
1996-07-12 0:00 ` Theodore E. Dennison
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