if (a & (flag1 | flag2)) toif ((a & (flag1 | flag2)) != 0) When the first is quite obvious.
Just change the typing of the if-conditional to:
if (boolean|integral) {…}
Ola Fosheim Grøstad via Digitalmars-d Sun, 12 Nov 2017 08:06:19 -0800
if (a & (flag1 | flag2)) toif ((a & (flag1 | flag2)) != 0) When the first is quite obvious.
Just change the typing of the if-conditional to:
if (boolean|integral) {…}