Re:Zig's Curious Multi-Sequence for Loops
by kristoff_it on Monday February 27, 2023 @03:17PM
(#34961338)
> An LLVM pointer value cannot legally contain arbitrary non-null non-pointer integers such as 0x2.
0x2 is a perfectly valid pointer value, it just happens to never be a good virtual memory address on modern systems where virtual memory is setup by the usual OSs, hence the fact that you can rely on it segfaulting.
0x2 is a perfectly valid pointer value, it just happens to never be a good virtual memory address on modern systems where virtual memory is setup by the usual OSs, hence the fact that you can rely on it segfaulting.