std.allocator.allocate(0) -> return null or std.allocator.allocate(1)?

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Sun May 17 05:09:36 PDT 2015


On 05/17/2015 10:35 AM, Idan Arye wrote:
> ...
>
> How about defining `alloc.allocate(0)` to *be* an error?

What is bad about allocate(0)?


More information about the Digitalmars-d mailing list