[Issue 24648] Power operator should be unordered with unary prefix, not stronger

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 4 21:28:27 UTC 2024


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

Dennis <dkorpel at live.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dkorpel at live.nl

--- Comment #1 from Dennis <dkorpel at live.nl> ---
> It’s the only exception to this rule: Unary operators bind stronger than binary ones. (Another is the template instantiation operator, for which the exception makes sense.)

Implied here is that the exception for `^^` makes no sense, but you just showed
how it's consistent with mathematical convention, so it makes total sense to
me. Adding an error seems like needless code breakage and uglifying.

--


More information about the Digitalmars-d-bugs mailing list