digitalmars.D.bugs - [Issue 18347] New: stdx.allocator dispose should be safe
- d-bugmail puremagic.com (27/27) Jan 31 2018 https://issues.dlang.org/show_bug.cgi?id=18347
https://issues.dlang.org/show_bug.cgi?id=18347 Issue ID: 18347 Summary: stdx.allocator dispose should be safe Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: greensunny12 gmail.com --- import std.stdio; void main() safe { import std.experimental.allocator.mallocator : Mallocator; import std.experimental.allocator : makeArray, dispose; alias alloc = Mallocator.instance; auto p = alloc.makeArray!ubyte(20); alloc.dispose(p); } --- https://run.dlang.io/is/t2IMq2 No ready why this shouldn't work. --
Jan 31 2018