[Issue 7349] assert(0) in class destructor - bad (or incorrect) error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 22 19:22:45 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=7349
thomas.bockman at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |thomas.bockman at gmail.com
--- Comment #8 from thomas.bockman at gmail.com ---
Given that assert(0) is intended to crash the program, wouldn't it also be
reasonable to just allocate using stdc's malloc, or an OS-specific syscall, and
not worry about explicitly freeing the memory? It's just going to get freed by
the OS when the process terminates an instant later, anyway...
--
More information about the Digitalmars-d-bugs
mailing list