3 ms·
> Not sure why I'd want this: (flags & (4 == 4)), but that's what flags & 4 == 4 does. Originally there was no && operator. You had to use & for Boolean conjun
by kqr 6y ago
> Not sure why I'd want this: (flags & (4 == 4)), but that's what flags & 4 == 4 does.
Originally there was no && operator. You had to use & for Boolean conjunction too. The precedence makes sense under that condition. (And later couldn't be changed without breaking existing code.)