On Saturday, 21 December 2024 at 23:16:52 UTC, sfp wrote:
On Saturday, 21 December 2024 at 07:02:07 UTC, Steven
Schveighoffer wrote:
I wrote a blog post on how to use a single mixin to forward
all operators to the D1 style overloads. You might find it
useful or inspiring.
https://www.schveiguy.com/blog/2022/06/how-to-keep-using-d1-operator-overloads/
-Steve
Thank you so much for posting this! This is exactly what I was
hoping for. I saw that D used to have this other style of
binops, but their state was unclear to me. This is a really
cool collection of tricks and will definitely help me solve my
current problem and keep learning cool D tricks. Cheers!
I agree, that post is one of the best examples of D
metaprogramming I've ever seen.