On 9/11/2011 9:07 PM, Walter Bright wrote:
On 9/11/2011 4:53 PM, Ali Çehreli wrote:
The problem is, the disabled default constructor of a *member* is making
a wrapper class's constructor to be disabled as well:
Right. It's infectious. This is deliberate.
> I think this is at least limiting and very
likely a bug.
It's deliberate. It's likely that we can find ways to loosen things up
in the future, but the idea is to screw it down tight, first, instead of
allowing big holes.
I've noticed that this is generally the philosophy when adding new
features to D. It's sometimes frustrating initially, but I'm starting
to see how it pays off in the long run, e.g. with implicitly converting
arrays returned from pure functions to immutable.