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:454e:: with SMTP id y75mr35107467ita.37.1546509020302; Thu, 03 Jan 2019 01:50:20 -0800 (PST) X-Received: by 2002:aca:5395:: with SMTP id h143mr598068oib.6.1546507819850; Thu, 03 Jan 2019 01:30:19 -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!q69no33610itb.0!news-out.google.com!v141ni66ita.0!nntp.google.com!k10no33610itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 3 Jan 2019 01:30:19 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=134.206.121.213; posting-account=O_NgcgoAAABs6pgCjroQBmOBL5ZZGPUc NNTP-Posting-Host: 134.206.121.213 References: <2a6929c5-72fa-4d84-953a-44ea4597ab38@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2d6bc75d-61d5-433d-abd1-31b80a897b8a@googlegroups.com> Subject: Re: class wide iterable (and indexable) From: George Shapovalov Injection-Date: Thu, 03 Jan 2019 09:50:20 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55172 Date: 2019-01-03T01:30:19-08:00 List-Id: > ARM A.18.2(34.3)ff[1] has both forms. Ah, thank you for the pointer. Unfortunately ARM is a rather heavy reading,= targeted more at language implementation (so, not the first place to look = at if there are other sources). But I guess I enter this territory already = while trying to reimplement indexing and iteration.. > You might be interested in Emmanuel's 'traits'-based containers, see > [2], [3]. Thanks, I'll take a look. > The Ada 95 Booch Components[4] follow this model. One reason they > weren't taken as a model for Ada.Containers was that the model requires > multiple levels of generic instantiation of child packages: Yes, I am very well aware of that :) (and I used Booch components before, t= his is also why surprise, as Ada.Containers seem to be rather inspired by t= hem). However here we have the trade-off of an extra few clear lines of code (mos= t commonly one trivial would suffice I suspect) for the capability to do a = more "universal" algorithm implementation. I'd say it is well worth it, but= apparently this was not the majority opinion.. Thanks again for all the pointers! George