dcollections 1.0 and 2.0a beta released

Simen kjaeraas simen.kjaras at gmail.com
Mon May 24 16:28:03 PDT 2010


Steven Schveighoffer <schveiguy at yahoo.com> wrote:
> On the flip side, if containers did not implement interfaces, having to  
> do this:
>
> class WrappedSet!(alias Impl, V) : Set!V
> {
>     private Impl!V impl;
>     int functionToSatisfySet() { return impl.functionToSatisfySet(); }
>     ...
> }
>
> seems to me like a lot more crufty and bloated than simply adding :  
> Set!V on the end of the class declarations.

This would not be necessary. We can get the function names off of the
interface, so we could have a template do this for us.

-- 
Simen


More information about the Digitalmars-d-announce mailing list