[phobos] Time to get ready for the next release

David Simcha dsimcha at gmail.com
Fri Apr 22 13:32:47 PDT 2011


On Fri, Apr 22, 2011 at 4:28 PM, Steve Schveighoffer <schveiguy at yahoo.com>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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/phobos/attachments/20110422/1bf89c0b/attachment.html>


More information about the phobos mailing list