Using multiple mixin templates to implement operator overloading

Dennis dkorpel at gmail.com
Sat Dec 12 20:26:00 UTC 2020


On Saturday, 12 December 2020 at 18:14:31 UTC, Paul Backus wrote:
> IMO this is one of the stupider design decisions in D, but it's 
> unlikely it will ever be fixed. The easiest workaround is to 
> use string mixins instead, which work the way you'd expect them 
> to.

If issue 19365 got fixed, it could be done with an alias instead.
https://issues.dlang.org/show_bug.cgi?id=19365

Currently string mixins are indeed the best option though.


More information about the Digitalmars-d-learn mailing list