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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fa18fb47ddd229a7 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-12 16:57:56 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!elnk-pas-nf1!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Proposed change to BC iterator parameters References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Sat, 13 Dec 2003 00:57:56 GMT NNTP-Posting-Host: 63.184.32.199 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1071277076 63.184.32.199 (Fri, 12 Dec 2003 16:57:56 PST) NNTP-Posting-Date: Fri, 12 Dec 2003 16:57:56 PST Xref: archiver1.google.com comp.lang.ada:3427 Date: 2003-12-13T00:57:56+00:00 List-Id: Robert A Duff wrote: > Jeffrey Carter writes: > >>I agree with Duff in general, but in the case of providing iteration >>over a protected structure, one must use an access-to-subprogram >>parameter. > > I don't understand. Why can't one use the usual generic-iterator idea > in that case? Maybe I don't understand what you mean by "protected > structure"... > > Maybe you could give an example? See, for example, the Queue_Bounded structure in AI-302-01, in which the queue is a protected type (section A.X.6). -- Jeff Carter "C++ is like giving an AK-47 to a monk, shooting him full of crack and letting him loose in a mall and expecting him to balance your checking account 'when he has the time.'" Drew Olbrich 52