comp.lang.ada
 help / color / mirror / Atom feed
From: briot.emmanuel@gmail.com
Subject: Re: Mixing operators and dot notation
Date: Mon, 6 Jun 2016 01:14:14 -0700 (PDT)
Date: 2016-06-06T01:14:14-07:00	[thread overview]
Message-ID: <fe0d3b8d-0849-42ff-8b94-65fdff9c42ea@googlegroups.com> (raw)
In-Reply-To: <nisq18$tpe$1@dont-email.me>

> 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.

  reply	other threads:[~2016-06-06  8:14 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 21:38 Mixing operators and dot notation Alejandro R. Mosteo
2016-06-02 21:42 ` Alejandro R. Mosteo
2016-06-02 22:28 ` Robert A Duff
2016-06-02 23:26   ` Randy Brukardt
2016-06-03 11:09     ` Alejandro R. Mosteo
2016-06-03 12:19       ` Dmitry A. Kazakov
2016-06-03 14:45       ` G.B.
2016-06-03 17:31       ` Shark8
2016-06-03 20:41         ` Alejandro R. Mosteo
2016-06-06  8:14           ` briot.emmanuel [this message]
2016-06-06 13:51             ` Alejandro R. Mosteo
2016-06-07 11:24             ` Traits and iterators (was: Mixing operators and dot notation) Alejandro R. Mosteo
2016-06-08  7:31               ` briot.emmanuel
2016-06-08 11:18                 ` Traits and iterators Alejandro R. Mosteo
2016-06-06  8:10       ` Mixing operators and dot notation briot.emmanuel
2016-06-06 13:58         ` Alejandro R. Mosteo
2016-06-02 23:05 ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox