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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:1f92:: with SMTP id f140-v6mr1397111iof.51.1527266987013; Fri, 25 May 2018 09:49:47 -0700 (PDT) X-Received: by 2002:a9d:738f:: with SMTP id j15-v6mr113190otk.6.1527266986320; Fri, 25 May 2018 09:49:46 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!85.12.16.69.MISMATCH!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!u74-v6no2297481itb.0!news-out.google.com!f20-v6ni2008itd.0!nntp.google.com!v8-v6no2296640itc.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 25 May 2018 09:49:46 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5; posting-account=L2-UcQkAAAAfd_BqbeNHs3XeM0jTXloS NNTP-Posting-Host: 2a02:c7d:3c35:b000:325a:3aff:fe0f:37a5 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Multiple iterators for a type From: Lucretia Injection-Date: Fri, 25 May 2018 16:49:46 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 1639 X-Received-Body-CRC: 3039895642 Xref: reader02.eternal-september.org comp.lang.ada:52678 Date: 2018-05-25T09:49:46-07:00 List-Id: Hi, I want to have a type which is an array of 8 bit values, I want the default iterator to be the normal array loop. But then I want to add more iterators which return different types but constructed from the array, i.e. a 32-bit value and a sub-array. 1. Can this be done on the base type or do I need to create new types from the base type? 2. if 1. can be done, do these iterators all need to be one package or can I put them in child packages? Thanks, Luke.