Bug 18297 – Prelude assert removed from all methods
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-25T13:06:36Z
Last change time
2023-05-05T13:22:09Z
Assigned to
No Owner
Creator
anonymous4
Comments
Comment #0 by dfj1esp02 — 2018-01-25T13:06:36Z
https://github.com/dlang/dmd/pull/6982 says to remove assert from constructors and destructors, but actually removes it from all methods. Is it intended?
Comment #1 by razvan.nitu1305 — 2023-05-05T13:22:09Z
I don't know if it was intentional or not, but I dont see why constructor/destructors should be treated differently in this case.
You'll get a segfault anyway.