On Thursday, 23 April 2026 at 18:20:23 UTC, Dom Disc wrote:
It's *really* b0rken IMO that you cannot even use `^^=` on a short integer! I'd file a bug, but Walter has said that he's not going change his stance on this.

Yeah, you can't use it at all.

ubyte m;
m ^^= m; // doesn't work

So this is a serious bug, not a policy anymore.

While m = m ^^ m may promote to int and raise an error about truncation, m op= m should not in general. That's a bug indeed.

https://github.com/dlang/dmd/pull/23023

  • Operator declara... Dom Disc via Digitalmars-d-learn
    • Re: Operato... H. S. Teoh via Digitalmars-d-learn
    • Re: Operato... Dom Disc via Digitalmars-d-learn
      • Re: Ope... Dennis via Digitalmars-d-learn
    • Re: Operato... Meta via Digitalmars-d-learn
      • Re: Ope... Dom Disc via Digitalmars-d-learn
      • Re: Ope... Nick Treleaven via Digitalmars-d-learn
        • Re:... Meta via Digitalmars-d-learn
          • ... Dom Disc via Digitalmars-d-learn
          • ... Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
          • ... Nick Treleaven via Digitalmars-d-learn
            • ... Meta via Digitalmars-d-learn
              • ... Nick Treleaven via Digitalmars-d-learn
                • ... Dom Disc via Digitalmars-d-learn

Reply via email to