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:a24:2f0e:: with SMTP id j14mr4421179itj.14.1546712233523; Sat, 05 Jan 2019 10:17:13 -0800 (PST) X-Received: by 2002:a9d:2c22:: with SMTP id f31mr1127295otb.4.1546712233307; Sat, 05 Jan 2019 10:17:13 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!q69no403375itb.0!news-out.google.com!v71ni421ita.0!nntp.google.com!q69no403374itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 5 Jan 2019 10:17:12 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.168.19.89; posting-account=O_NgcgoAAABs6pgCjroQBmOBL5ZZGPUc NNTP-Posting-Host: 85.168.19.89 References: <2a6929c5-72fa-4d84-953a-44ea4597ab38@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: class wide iterable (and indexable) From: George Shapovalov Injection-Date: Sat, 05 Jan 2019 18:17:13 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55196 Date: 2019-01-05T10:17:12-08:00 List-Id: On Saturday, January 5, 2019 at 11:07:57 AM UTC+1, Dmitry A. Kazakov wrote: > That is because compilers are no longer large software, not even=20 > medium-size (:-)). My current project takes a half of week to recompile= =20 > from scratch. Sorry to break up this "high opinions" discussion, it is as usual interesti= ng to see varying points of view. Incidentally, having done a few long-stan= ding projects and having maintained Ada in Gentoo Linux (which, in Gentoo's= case, implies digging deep into gcc toolchain inner workings), I am of sim= ilar to Drmitry's opinion on this point (even though gcc, while bigger than= Janus Ada, is still is nowhere near that kind of scale of course). Nonetheless, back to the original point. A small update on the original issue: I have finally had some time to wrap my head around this issue a bit more a= nd I have completed the implementation. Now it builds and tests fine for al= l cases - specific types and class-wide vars alike. The issue was not just = some simple omission. In fact there was not just a single issue - complete = implementation required implementing parallel type hierarchies (although wi= th minimum of duplicated code - only for illustration purpose in this case;= could be tied up even more, see the comments in the code if anybody is int= erested by any chance). I essentially ended up reimplementing Ada "standard= library", of course in a very simplistic variant, demo-like. Still, I man= aged to glue Ada.Containers.Vectors.Vector right over the List_Interface, t= hus exposing ACV.Vector's primitives directly without extra glue needed. Th= e corresponding code is in the master of: https://github.com/gerr135/ada_gems/tree/master/list_iface While digging, I tried alternatives, one of which "hides" the ACV.Vector in= side a record - a more classical approach, easier to comprehend (even thoug= h the code is mostly the same, less than 10 lines of difference). This code= is in "in_rec" branch: https://github.com/gerr135/ada_gems/tree/in_rec/list_iface Finally, at some point while testing different things I managed to break gn= at, causing it to spill out that gnat Bug message. Relevant code and error = message are in yet another branch, here: https://github.com/gerr135/ada_gems/tree/gnat_bug_01/list_iface the bug message text is in the "bug_info.txt" file at the top of the list_i= face folder.. Is this something already well known or should I report this bug to AdaCore= ?