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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Alejandro R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Mixing operators and dot notation Date: Mon, 6 Jun 2016 15:51:27 +0200 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 6 Jun 2016 13:51:28 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="df6c13c4617621ca1de5ec657b563bf1"; logging-data="1148"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CK2/QsWgYET8Wvh3sf5bk" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: Cancel-Lock: sha1:j6l3zxffgFU7EdSflUdRz0HnjCk= Xref: news.eternal-september.org comp.lang.ada:30634 Date: 2016-06-06T15:51:27+02:00 List-Id: On 06/06/16 10:14, briot.emmanuel@gmail.com wrote: >> My solution used a base generic as formal for all subsequent formals, >> and it was the first time I saw the need for that, so it was quite engaging. > > it is indeed a powerful approach. > The Ada standard calls them signature packages, other languages sometimes > call them traits. D calls them policy-based containers, I think. > > > We are working on a containers library using this, so that algorithms, for instance, > can be made independent of containers, and that users can configure a lot of the > behavior of containers (checks or not, bounded or not, definite or indefine > elements) by the proper usage of formal package parameters. > See https://github.com/AdaCore/ada-traits-containers if you want more info. > > Look at the docs for some of the rationales behind the current design choices. Now I remember I saw some discussion about this project. Perhaps in AdaCore's blog? Thanks, I will take a look. Álex.