std.allocator ready for some abuse

Artem Tarasov lomereiter at gmail.com
Thu Oct 24 14:16:04 PDT 2013


The design looks great. Easy to grasp and covers almost all imaginable use
cases.

'Almost' because it would be nice to also have ScopeAllocator!N ~
FallbackAllocator!(InsituRegion!N, Mallocator) which would automatically
deallocate all heap-allocated blocks when exiting the scope (i.e. no
deallocate method, array of pointers to be freed is kept on a C heap).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20131025/93903b14/attachment.html>


More information about the Digitalmars-d mailing list