same in C or is it just codepad http://codepad.org/p0ru7zLC
-
-
-
In C, this is an undefined behavior. But in JavaScript, representable integers exceed 2^32.
End of conversation
New conversation -
-
-
is there anything JavaScript-specific about this? looks like it's just passing through the undefined behaviour from C (which will give the same results with GCC/Clang on x86_64)
-
High-level, interpreted languages shouldn't be the same intricacies and undefined behavior as C.
- 14 more replies
New conversation -
-
-
Rust does something similar, although in release builds only (debug build will panic): https://play.rust-lang.org/?version=stable&mode=release&edition=2018&gist=d42a021e529470f6eb172fbb201f4778 …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
*wonders why `1n >> 32n` is 0*
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Btw on C this is UB
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.