Allocatoin policy in Phobos - Was: Vote for std.process

Walter Bright newshound2 at digitalmars.com
Fri Apr 12 10:41:57 PDT 2013


On 4/12/2013 7:05 AM, Manu wrote:
> I'll start doing it myself, but I also suggest it be made a policy, and
> carefully considered when considering acceptance of ANY new module. That way,
> new code that suffers the unpredictable/"surprise!" allocation problems won't be
> introduced.

I would also expect that Phobos modules that know the lifetimes of their 
allocated data use malloc/free rather than the gc.

Of course, that entails more effort in coding the modules to ensure no leaks, 
but we can certainly expect that of phobos developers.


More information about the Digitalmars-d mailing list