Phobos addition formal review: std.experimental.allocator
Brian Schott via Digitalmars-d
digitalmars-d at puremagic.com
Sun Jun 14 04:00:15 PDT 2015
On Sunday, 14 June 2015 at 00:24:51 UTC, Andrei Alexandrescu
wrote:
> So we have:
>
> * 1 request to change names;
> * 3 requests to wank around the directory structure;
> * 0 of everything else.
>
> Sigh.
>
>
> Andrei
How about this:
AllocatorList.allocate() calls AllocatorList.owns(), but only if
you don't compile with -release. Check the assert statement.
AllocatorList.owns() is non-const, so the for loops of these two
functions start rearranging the root pointers and end up in an
infinite loop in debug builds.
More information about the Digitalmars-d
mailing list