News for hackers. Stuff that matters.
Re:Zig's Curious Multi-Sequence for Loops by Yoric on Monday February 27, 2023 @11:16AM (#34958145)
Could you elaborate? What's a safety-checked UB?
Re:Zig's Curious Multi-Sequence for Loops by codethief on Monday February 27, 2023 @11:32AM (#34958398)
Re:Zig's Curious Multi-Sequence for Loops by Yoric on Monday February 27, 2023 @11:43AM (#34958590)
Thanks.

So, if I read this correctly, barring the simple cases that Zig can detect at compile-time, this means that whether it's a UB (in the C++ definition of the term) depends on the flags specified by the author of the library and the person who compiles the final binary.

That's definitely much better than C++ UB. Still a bit scary, though.