Quote:Original post by _moagstar_Quote:Original post by Xai
That is silly - or possibly worse, stupid.
I think this idiom is actually trying to be a bit too clever.
I don't know, I think it's useful and perfectly clear when used on primitive types. For example:
void Foo(int x, int y){ if(!!x ^ !!y) { // x is nonzero and y is zero, or y is nonzero and x is zero }}