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.3 required=5.0 tests=BAYES_00,LOTS_OF_MONEY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,602b7f606b0d64e2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-10 23:16:04 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!wn11feed!wn12feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Reply-To: "James S. Rogers" From: "James S. Rogers" Newsgroups: comp.lang.ada References: <8pLT9.105190$hK4.8530896@bgtnsc05-news.ops.worldnet.att.net> Subject: Re: Private discrete type as index X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: Date: Sat, 11 Jan 2003 07:16:03 GMT NNTP-Posting-Host: 12.86.32.131 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1042269363 12.86.32.131 (Sat, 11 Jan 2003 07:16:03 GMT) NNTP-Posting-Date: Sat, 11 Jan 2003 07:16:03 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:32908 Date: 2003-01-11T07:16:03+00:00 List-Id: "AG" wrote in message news:hULT9.21355$F63.398611@news.xtra.co.nz... > > "James S. Rogers" 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