[Issue 12387] Mark stdlib malloc and friends as weekly pure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 17 04:09:44 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12387



--- Comment #2 from monarchdodra at gmail.com 2014-03-17 04:09:43 PDT ---
Could you please explain what makes GC "special", but not "malloc" ? What does
one need to verify to be "special".

Also related: If malloc is not pure, then there is *0* chance of seeing much
use of it outside the IO module. We have gone through great lengths to keep
most range/algorithm/string functions pure and CTFE-able. Breaking that purity
is *NOT* acceptable.

This includes functions that do path concatenation, that *could* use your
ScopeBuffer, or similar "local memory management" approaches.

It is a major blocker in terms of "preventing Phobos from leaking".

Please reconsider.

Or please try to explain why "malloc" isn't special. It will help me
understand, and stop me from pressing on the issue.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list