3 ms·
> comparing function pointers is not deterministic The comparison is deterministic - the perhaps unexpected part is that two distinct but identical functions i
by account42 6y ago
> comparing function pointers is not deterministic
The comparison is deterministic - the perhaps unexpected part is that two distinct but identical functions in the source code are folded into one in the binary.
- johncolanduoni 6y agoThat bug was actually a bit deeper; it merged the functions but would statically fold some comparisons to false while letting others persist to runtime (where they would evaluate to true) in the same build. You could do `x == y` twice and get different results, one of which was a lie.