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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,30fad28eb8886cca X-Google-Attributes: gid103376,public From: st92j0gw@dunx1.ocs.drexel.edu (Chris Papademetrious) Subject: Re: parameterless generics? Date: 1996/07/15 Message-ID: <4sdou6$q1t@noc2.drexel.edu>#1/1 X-Deja-AN: 168841042 references: <4s48k9$3be$1@mhafn.production.compuserve.com> organization: Drexel University newsgroups: comp.lang.ada Date: 1996-07-15T00:00:00+00:00 List-Id: Brian Gilbert <71413.1453@CompuServe.COM> 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? I believe if you create a child library of a generic package (pardon my butchering of the terminology, I'm new to Ada 95), the child itself must also be generic. Oftentimes, the child won't need a generic parameter of its own, only needing that of its parent, in which case you'd get the interesting construct: generic package Blah is... This is covered in "Programming in Ada 95" by John Barnes, page 390. >Brian Gilbert >71413.1453@compuserve.com -=-=-=-=-=-=-=-=-=-=-=-=- Chris Papademetrious Data Fusion Laboratory Drexel University Philadelphia, PA -=-=-=-=-=-=-=-=-=-=-=-=-