Allocatoin policy in Phobos - Was: Vote for std.process
    Steven Schveighoffer 
    schveiguy at yahoo.com
       
    Fri Apr 12 10:56:24 PDT 2013
    
    
  
On Fri, 12 Apr 2013 13:41:57 -0400, Walter Bright  
<newshound2 at digitalmars.com> wrote:
> 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.
I would like a better solution.  Allocating things with malloc/free means  
no GC references involved,or clunky addroot/removeroot calls.  That is  
dangerous to say the least.
What about dsimcha's region allocator?
-Steve
    
    
More information about the Digitalmars-d
mailing list