comp.lang.ada
 help / color / mirror / Atom feed
From: jsa@alexandria.organon.com (Jon S Anthony)
Subject: Re: Ada Generic Library (very) preliminary release
Date: 1997/07/14
Date: 1997-07-14T00:00:00+00:00	[thread overview]
Message-ID: <JSA.97Jul14131434@alexandria.organon.com> (raw)
In-Reply-To: Pine.SGI.3.95.970713193310.25027A-100000@shellx.best.com


In article <Pine.SGI.3.95.970713193310.25027A-100000@shellx.best.com> Brian Rogoff <bpr@shellx.best.com> 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




  reply	other threads:[~1997-07-14  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-08  0:00 Ada Generic Library (very) preliminary release Brian Rogoff
1997-07-09  0:00 ` Richard Kenner
1997-07-09  0:00   ` Brian Rogoff
1997-07-09  0:00   ` Robert Dewar
1997-07-09  0:00 ` Mats Weber
1997-07-09  0:00   ` Brian Rogoff
1997-07-13  0:00     ` Matthew Heaney
1997-07-13  0:00       ` Brian Rogoff
1997-07-13  0:00         ` Matthew Heaney
1997-07-13  0:00           ` Brian Rogoff
1997-07-14  0:00             ` Jon S Anthony [this message]
1997-07-14  0:00               ` Brian Rogoff
1997-07-14  0:00         ` Jon S Anthony
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox