Reference counted containers prototype

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Dec 27 23:05:29 PST 2011


On 12/28/11 12:59 AM, Robert Jacques wrote:
> I would have thought that the template parameters would be passed to
> opDispatch i.e.
>
> obj.opDispatch!("foo",bar,baz)(a,b);
>
> although I don't know how opDispatch would be written to handle such a
> call in a generic manner, i.e. I would want to define it as
>
> obj.opDispatch!(string name, Targs..,Vargs..)(Vargs args) { ... }
>
> but stuff like that isn't possible currently.
>
> That said, parsing the string for "bar" and "baz" is both difficult and
> doesn't provide access inside opDispatch to "bar" and "baz".

I think we all ought to look closely at ProxyOf.

https://github.com/D-Programming-Language/phobos/pull/300


Andrei


More information about the Digitalmars-d mailing list