std.allocator.allocate(0) -> return null or std.allocator.allocate(1)?
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sat May 16 09:35:55 PDT 2015
On 5/16/15 2:20 AM, Jacob Carlborg wrote:
> On 2015-05-15 22:34, Timon Gehr wrote:
>
>> - Where do you allocate the exception object?
>
> Per-allocated? The same way as out of memory is handled in the runtime.
Regardless, std.allocator does not use exceptions anywhere (it is,
however, neutral to exceptions thrown from withing e.g. constructors of
generic types). -- Andrei
More information about the Digitalmars-d
mailing list