On 9/17/12 10:28 AM, Alex Rønne Petersen wrote:
On 17-09-2012 15:12, Andrei Alexandrescu wrote:
On 9/17/12 6:52 AM, deadalnix wrote:
Regardless, the solution at this point is going to be to add
std.typecons.NonNullable. It would be in there already, but the pull
request
with it needed more work, and it hasn't been resubmitted yet.


I don't think this is implementable as a lib in a satisfying way.

It is, but it needs just a bit of language support in constructors.
Walter never got around to it.

Andrei

What support, exactly?

I mean, we have @disable already.

Minimal control flow inside constructors. It needs to ensure that all NonNull member variables get initialized.

Andrei

Reply via email to