25-Oct-2013 03:22, deadalnix пишет:
On Thursday, 24 October 2013 at 19:53:56 UTC, Andrei Alexandrescu wrote:
Hello,
I know it's been a long wait. Hopefully it was worth it. The alpha
release of untyped allocators is ready for tire-kicking and a test drive.
Code: https://github.com/andralex/phobos/blob/allocator/std/allocator.d
Dox: http://erdani.com/d/phobos-prerelease/std_allocator.html
[snip]
First, I love it !
Now destroying :D
The first thing I notice is that this module is dead unsafe. I'm not
sure it belong to std. We should probably reserve that for a "guru" part
of the standard lib. Putting some system function in the standard lib is
OK, as they are packaged around concepts (range, array, algorithms, etc
. . .) but an entire module dedicated to @system stuff seems like it
belong to another place.
+1 on both counts. It's a @system module, incredibly convenient but it
belongs to core.allocator;
--
Dmitry Olshansky