From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30fad28eb8886cca,start X-Google-Attributes: gid103376,public From: guerby@gnat.com (Laurent Guerby) Subject: Re: parameterless generics? Date: 1996/07/11 Message-ID: #1/1 X-Deja-AN: 167938619 sender: guerby@schonberg.cs.nyu.edu references: <4s48k9$3be$1@mhafn.production.compuserve.com> organization: New York University reply-to: guerby@gnat.com newsgroups: comp.lang.ada Date: 1996-07-11T00:00:00+00:00 List-Id: 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 , Team Ada. "Use the Source, Luke. The Source will be with you, always (GPL)."