std.allocator ready for some abuse

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Oct 25 08:21:43 PDT 2013


On 10/25/13 5:50 AM, Timon Gehr wrote:
> - Possible null dereference on line 3128. :o)
>    (In general, CascadingAllocator is not yet very composable. It should
> return null allocations instead of failing in undocumented ways.

Good point. Fixed and pushed.

> It
> should probably also allow the 'make' function to return null.)

make() returns Allocator objects by value, not pointers.

> - "CAllocator". The name is non-descriptive/misleading.

"Class Allocator" :o)

> - Preconditions should be in the corresponding section.

Will do...


Andrei


More information about the Digitalmars-d mailing list