Virtual opBinary in interface
sfp
sfp at hush.ai
Sat Dec 21 23:16:52 UTC 2024
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!
More information about the Digitalmars-d-learn
mailing list