comp.lang.ada
 help / color / mirror / Atom feed
From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Private discrete type as index
Date: Sat, 11 Jan 2003 07:16:03 GMT
Date: 2003-01-11T07:16:03+00:00	[thread overview]
Message-ID: <TwPT9.105450$hK4.8563792@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: hULT9.21355$F63.398611@news.xtra.co.nz

"AG" <ang@xtra.co.nz> wrote in message
news:hULT9.21355$F63.398611@news.xtra.co.nz...
>
> "James S. Rogers" <jimmaureenrogers@worldnet.att.net> wrote in message
> news:8pLT9.105190$hK4.8530896@bgtnsc05-news.ops.worldnet.att.net...
>
> > At the point of declaration of the array type the index type
> > is not specified as a discrete type. The array type is not private.
> > The nature of the index type must be visible within the scope of
> > the declaration of the array type.
>
> True, and the example you give below is fine *if* you want
> to hide from the user the fact that the construct is an array
> (that's what I meant by "iterator").
>
> However, what if you want to let your clients know that
> that the structure is indeed an array and provide appropriate
> operations on the index but prevent them from directly
> manipulating it?

I am unclear what you mean by "providing appropriate operations"
without allowing direct manipulation. This sounds like an iterator to
me. Please describe what you have in mind instead.

Jim Rogers





  reply	other threads:[~2003-01-11  7:16 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-11 21:42 Private discrete type as index AG
2003-01-11  2:34 ` James S. Rogers
2003-01-12  0:09   ` AG
2003-01-11  7:16     ` James S. Rogers [this message]
2003-01-12  5:47       ` AG
2003-01-11 12:22         ` Dmitry A. Kazakov
2003-01-11 14:36         ` Charles H. Sampson
2003-01-12 19:23 ` Keith Thompson
2003-01-12 19:48   ` tmoran
2003-01-15 16:45     ` Dmitry A. Kazakov
2003-01-18  6:24       ` AG
2003-01-17 14:14         ` tmoran
2003-01-19  1:38           ` AG
2003-01-18  8:36             ` tmoran
2003-01-19  6:06               ` AG
2003-01-17 16:28         ` Dmitry A. Kazakov
replies disabled

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