Allocation strategies question
    ref2401 via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Sun Nov  1 01:48:18 PST 2015
    
    
  
On Friday, 30 October 2015 at 05:21:17 UTC, Rikki Cattermole 
wrote:
> What I normally do for memory to be owned by the thread is:
>
> auto foo(IAllocator alloc=theAllocator()) {...}
>
> Where as for if it is global to the process:
>
> auto foo(IAllocator alloc=processAllocator()) {...}
>
> Basically it is the difference between a screenshot of a 
> display and a window instance.
What do other think?
    
    
More information about the Digitalmars-d-learn
mailing list