3 ms·
That’s not correct: Equal value isn’t an issue. Having both variables point to the same memory is.
by dividuum 4y ago
That’s not correct: Equal value isn’t an issue. Having both variables point to the same memory is.
- Xophmeister 4y agoOops, my bad! I knew it was something to do with equality, but I forgot the specifics… Another good reason not to rely on tricks, I suppose!
- dividuum 4y agoAgreed. Had to think about that one too a moment, but something felt wrong. XOR is bitwise, so if your statement was true, it would mean that two 1 bits or two 0 bits would both end up producing a 0 bit result. Clearly that would make the whole thing pretty useless :)