std.allocator ready for some abuse

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Oct 24 17:03:48 PDT 2013


On 10/24/13 3:19 PM, Kapps wrote:
> A couple of questions:
> Shouldn't most of these implementations be marked nothrow? I could be
> missing something here.

Oh yah, that's part of the whole "alpha" thing. Then, since most 
allocators are templated, I'm hoping language definition will catch up 
with me and just infer them most of the time.

> For CAllocator, I notice setting alignment is a property yet does not
> return void. Does this not go against the idea of @property? Perhaps it
> should be setAlignment instead?

Yah, I'll fix that. Thanks!


Andrei


More information about the Digitalmars-d mailing list