It would be great if you could declare your own .init as you can atm with "new" (http://dlang.org/class.html#allocators).

For example:

class Foo {
public:
    init() {
        this = new typeof(this)();
    }
}

So you could avoid a null declaration by default. :)

Reply via email to