How do I use the ScopedAllocator?

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 24 13:48:55 PDT 2016


On Friday, 22 July 2016 at 01:54:28 UTC, Yuxuan Shui wrote:
> 		auto b = alloc.makeArray!A(10, A(1));
> 		auto c = alloc.makeArray!A(2, A(2));

I noticed (using dpaste) if you edit the 'b' line to only 
allocate 5 structs, and it won't crash. 6 or more, crash. Maybe a 
bug?


More information about the Digitalmars-d mailing list