std.allocator ready for some abuse
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Oct 31 19:44:01 PDT 2013
On 10/31/13 7:26 PM, safety0ff wrote:
> I noticed that the GCAllocator provides no way of controlling the memory
> block attributes (http://dlang.org/phobos/core_memory.html#.GC.BlkAttr
> ,) all allocations get the default (no attributes.) This is a leaky
> abstraction, a data structure or composed allocators may desire to
> control the attributes to reduce GC pressure.
These attributes seem to be informed by the types stored, which would be
above the charter of untyped allocator.
Andrei
More information about the Digitalmars-d
mailing list