[Issue 20137] A program crashes at runtime (should be compile error)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Aug 23 18:19:37 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=20137

--- Comment #8 from Simen Kjaeraas <simen.kjaras at gmail.com> ---
There is no unpredictable crash in this case - the crash is perfectly
predictable. And no, it's not like saying C does what it should - it's like
saying Rust does what it should because you can do unsafe stuff in unsafe
blocks. You're punching yourself in the face and telling the doctor it hurts
when you do so. The solution is to stop punching yourself in the face.

--


More information about the Digitalmars-d-bugs mailing list