RFC: moving forward with @nogc Phobos

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Sep 29 15:15:33 PDT 2014


On 9/29/14, 11:44 AM, Shammah Chancellor wrote:
> I don't like the idea of having to pass in template parameters
> everywhere -- even for allocators.

I agree.

> Is there some way we could have
> "allocator contexts"?
>
> E.G.
>
> with( auto allocator = ReferencedCounted() )

Don't confuse memory allocation with memory management. There's no such 
a thing as a "reference counted allocator".


Andrei



More information about the Digitalmars-d mailing list