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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: Luke A. Guest Newsgroups: comp.lang.ada Subject: Re: Multiple iterators for a type Date: Sat, 26 May 2018 04:57:45 +0100 Organization: Aioe.org NNTP Server Message-ID: <574749990.548999719.627915.laguest-archeia.com@nntp.aioe.org> References: NNTP-Posting-Host: 1/jzMneW/rsK6ZphBSWRKw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: NewsTap/5.3.1 (iPhone/iPod Touch) Cancel-Lock: sha1:nHyuNCQdQcSfCMFc2mkKrnrdOZA= X-Notice: Filtered by postfilter v. 0.8.3 Xref: reader02.eternal-september.org comp.lang.ada:52688 Date: 2018-05-26T04:57:45+01:00 List-Id: Stephen Leake <> wrote: > An "iterator" can be anything you want it to be. As Randy pointed out, > there can be only one that gets special treatment from the compiler, but > you did not mention that as a requirement. > I’m attempting to implement a Unicode string using UTF-8, so I want the basic iterator over octets, then the next will iterate over the octets and generate code points, then another will be graphème clusters.