On Thursday, 3 December 2015 at 19:03:35 UTC, Nerve wrote:
I wonder what Walter and Andrei think of potentially overhauling those elements in D. Right now all of the manual memory management is basically ripped from C and C++ with no changes, and no insights into how to improve such a system. But I do see why they went that route. Type safety is a top concern.
We have templates, these can be done in the library. See e.g. std.experimental.allocator.make.