std.allocator ready for some abuse

Timon Gehr timon.gehr at gmx.ch
Fri Oct 25 15:11:13 PDT 2013


On 10/25/2013 05:21 PM, Andrei Alexandrescu wrote:
> 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.
> ...

Thanks.

>> It
>> should probably also allow the 'make' function to return null.)
>
> make() returns Allocator objects by value, not pointers.
> ...

'Allocator' could in general be a reference type.

>> - "CAllocator". The name is non-descriptive/misleading.
>
> "Class Allocator" :o)
> ...

Then its purpose must be allocating classes? :o)



More information about the Digitalmars-d mailing list