Tsoding streamed about D

Ogion ogion.art at gmail.com
Wed Mar 19 13:20:14 UTC 2025


On Wednesday, 19 March 2025 at 11:37:21 UTC, Steven Schveighoffer 
wrote:
> e.g. you shouldn't be able to define `a + b` to be something 
> other than what `a` or `b` intended.

My first thought was, why would anyone do such an evil thing. 
Then I realized how tempting it would be to circumvent integer 
promotion rules with operator overloading…

“With that power I should have power too great and terrible. And 
over me the Ring would gain a power still greater and more 
deadly.”



More information about the Digitalmars-d mailing list