[Issue 24842] No ability to overload unary logial not operator

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 3 10:18:27 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24842

Dominikus Dittes Scherkl <dominikus at scherkl.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dominikus at scherkl.de

--- Comment #1 from Dominikus Dittes Scherkl <dominikus at scherkl.de> ---
"!" is overwritten using the opCast!bool() operator (it's a cast to the other
boolean value). This is like opCmp() overwrites all comparison operators.

--


More information about the Digitalmars-d-bugs mailing list