opDispatch and operator overloads
Steven Schveighoffer
schveiguy at yahoo.com
Tue May 21 13:34:26 PDT 2013
On Tue, 21 May 2013 16:16:08 -0400, Timon Gehr <timon.gehr at gmx.ch> wrote:
> On 05/21/2013 09:53 PM, Steven Schveighoffer wrote:
>> At the end of the day, it's going to be less boilerplate for the
>> std.typecons.Proxy that one has to mixin. User code will look the same.
>> ...
>
> For user code there is a difference eg. in how inflated the
> __traits(allMembers) result will be.
I consider it a weak argument. I wouldn't expect the __traits(allMembers)
to be meaningful for a proxy type.
As you want it, it would have two members, opDispatch, and the wrapped
member. I don't know how useful that would be. Admittedly, I don't
regularly use the allMembers trait.
-Steve
More information about the Digitalmars-d
mailing list