std.allocator ready for some abuse
Kapps
opantm2+spam at gmail.com
Thu Oct 24 15:23:09 PDT 2013
On Thursday, 24 October 2013 at 22:19:10 UTC, Kapps wrote:
> 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?
Actually, this doesn't make sense because then it would not be
possible to use CAllocator instead of an Allocator in a template
as the type would be wrong. It still feels a bit odd that it
returns bool to me, but I definitely see the logic now.
More information about the Digitalmars-d
mailing list