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,6c424a2d310d290 X-Google-Attributes: gid103376,public From: jsa@alexandria.organon.com (Jon S Anthony) Subject: Re: Ada Generic Library (very) preliminary release Date: 1997/07/14 Message-ID: #1/1 X-Deja-AN: 256834683 Distribution: world References: <33C39534.E8DAC63D@elca-matrix.ch> Organization: PSINet Newsgroups: comp.lang.ada Date: 1997-07-14T00:00:00+00:00 List-Id: In article Brian Rogoff writes: > child package of the generic container). The problem is that I can't > instantiate those signature packages in the spec unless everything it needs > is public, which is rather blecherous (for Ada). So a typical Iterators > child package looks like this: > > generic > package AGL.Some_Container.Iterators is > type Iterator_Type is > ... public type declaration, ugly ... > > ... Start(), Finish(), Increment(), etc ... > > ... other package decls ... > > package Bidirectional_Iterators is > new AGL.Bidirectional_Iterators(Value_Type, > Value_Ref_Type, > Iterator_Type, What was the design rationale for not allowing/wanting Iterator_Type to be a reference type (to a private Iterator_Struct_Type)? /Jon -- Jon Anthony OMI, Belmont, MA 02178 617.484.3383 "Nightmares - Ha! The way my life's been going lately, Who'd notice?" -- Londo Mollari