[Issue 19164] malloc may be considered pure when failure results in program exit (no need to reset errno)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 18 08:52:42 UTC 2018


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

--- Comment #11 from Nathan S. <n8sh.secondary at hotmail.com> ---
>It's like we're talking about different things... `malloc` returning
>null is *insufficient* to warrant program termination, no matter how
>you want to call the wrapper.

I think 99% of the problem is that I copied and pasted the documentation and
gave the wrong idea. It's not a general-purpose replacement for malloc, it's
supposed to be a purified macro for `enforce!OutOfMemoryError(malloc(sz))`.

--


More information about the Digitalmars-d-bugs mailing list