According to the docs class allocators are deprecated: http://dlang.org/class.html#allocators But this code gives no warnings nor deprecation errors, that I suggest to introduce: class Foo { new(size_t sz) { return null; } delete(void* p) {} } void main() {}
They've been removed now. Only one limited form remains, with @disable, to allow blocking the 'new' operator.