It doesn't work for me.  See:

http://d.puremagic.com/issues/show_bug.cgi?id=4174
http://d.puremagic.com/issues/show_bug.cgi?id=4182

I should say, 4174 is due to using interfaces.

-Steve




>________________________________
>From: David Simcha <[email protected]>
>To: Steve Schveighoffer <[email protected]>; Discuss the phobos library for 
>D <[email protected]>
>Sent: Friday, April 22, 2011 4:32 PM
>Subject: Re: [phobos] Time to get ready for the next release
>
>
>
>
>
>On Fri, Apr 22, 2011 at 4:28 PM, Steve Schveighoffer <[email protected]> 
>wrote:
>
>I also don't like the new operator overloading scheme in D2, since there are 
>oodles of problems with template methods and classes, but they are much more 
>powerful than the old method.  Since the old methods are unofficially still 
>there, I have something to fall back on for dcollections, but I expect some 
>day to have to drop all references to the old operator overloading functions.  
>Is it frustrating?  Yes.  Does it seem pointless?  Yes.  But my single opinion 
>and my library cannot be the reason that an obviously better system isn't 
>adopted.
>>
>>
>>
>>-Steve
>>
>>
>
>This is fixable in one line per class:
>
>mixin(oldOperatorOverloading);
>
>Such a mixin would automagically create new style operator overloads that 
>forward to the old ones.  It would be trivial, though somewhat tedious, to 
>write, but once written the problem would be solved forever. 
>
>
>
_______________________________________________
phobos mailing list
[email protected]
http://lists.puremagic.com/mailman/listinfo/phobos

Reply via email to