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 10.36.64.67 with SMTP id n64mr16361337ita.36.1517351720856; Tue, 30 Jan 2018 14:35:20 -0800 (PST) X-Received: by 10.157.11.124 with SMTP id p57mr34940otd.5.1517351720722; Tue, 30 Jan 2018 14:35:20 -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!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.am4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!w142no1431164ita.0!news-out.google.com!b73ni5435ita.0!nntp.google.com!w142no1431163ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 30 Jan 2018 14:35:20 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a01:e35:2ecd:88c0:2ca7:86cb:394c:f39c; posting-account=O1Kt4QoAAABKYAjrg-cGai_vZLnN2LEw NNTP-Posting-Host: 2a01:e35:2ecd:88c0:2ca7:86cb:394c:f39c References: <61ba3677-0041-4dba-af9b-a5df48f3ce8a@googlegroups.com> <6427a793-91a4-4feb-b067-ed89b4c04421@googlegroups.com> <3af9cfc4-d434-4d60-a4ed-17a16f75717f@googlegroups.com> <3da7bd47-c325-4b25-bb6e-6f53773835ef@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Iterable container as generic parameter From: Lionel Draghi Injection-Date: Tue, 30 Jan 2018 22:35:20 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 3402246668 X-Received-Bytes: 2791 Xref: reader02.eternal-september.org comp.lang.ada:50215 Date: 2018-01-30T14:35:20-08:00 List-Id: Le mardi 30 janvier 2018 00:00:20 UTC+1, Randy Brukardt a =C3=A9crit=C2=A0: > The Cursor type you are getting from the formal interface package is an= =20 > incomplete type. You can't do much with an incomplete type. >=20 > Now, I'd have to read the RM for hours to figure out for sure whether you= =20 > are supposed to get the formal or the actual type in this case. It wouldn= 't=20 > surprise me if it is supposed to be the formal type, in which case, your= =20 > original version was better. Otherwise, it could be a GNAT bug, but, agai= n,=20 > I'm not sure. Practically, I'd assume that it is the formal and use your= =20 > original formulation (which clearly doesn't have a problem). =20 Actually, the second Emmanuel's point about making a signature package of = Iterator related stuff was the solution to this problem also, because the C= ursor is no more used where it is instantiated. I probably won't finish it tonight, but its becoming nice and easy to insta= ntiate! (I'll be back with a v0.2.0 before the FOSDEM!) =20