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.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, FROM_STARTS_WITH_NUMS autolearn=no autolearn_force=no version=3.4.4 X-Received: by 10.107.158.145 with SMTP id h139mr585626ioe.120.1518223422009; Fri, 09 Feb 2018 16:43:42 -0800 (PST) X-Received: by 10.157.71.25 with SMTP id a25mr199949otf.3.1518223421827; Fri, 09 Feb 2018 16:43:41 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no92504ita.0!news-out.google.com!s63ni197itb.0!nntp.google.com!o66no93206ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 9 Feb 2018 16:43:41 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.240.214.139; posting-account=rhqvKAoAAABpikMmPHJSZh4400BboHwT NNTP-Posting-Host: 85.240.214.139 References: <5d9134c9-a7d4-468e-8685-ebbb393eabea@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: grassroots thoughts on access types From: Mehdi Saada <00120260a@gmail.com> Injection-Date: Sat, 10 Feb 2018 00:43:41 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 1765053225 X-Received-Bytes: 2038 Xref: reader02.eternal-september.org comp.lang.ada:50354 Date: 2018-02-09T16:43:41-08:00 List-Id: For iteration, do you prefer the lighter alternative of GNAT's Iterable asp= ect ? type List is private with Iterable =3D> (First =3D> First_Cursor, Next =3D> Advance, Has_Element =3D> Cursor_Has_Element, [Element =3D> Get_Element]); Though I haven't used it yet (but will as soon as I have to write an ADT), = if I read well, "Cursor" can be anything, be it simple a mere integer: "a t= ype declared in the container package or visible from it". It doesn't seem = to need reference types with access discriminant.