How to check at compile time if Default Constructor for a class exists?

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 1 19:31:13 PST 2016


On Saturday, 2 January 2016 at 03:06:26 UTC, Bottled Gin wrote:
> I think this is related to the bug 3438 that got fixed recently.
>
> https://issues.dlang.org/show_bug.cgi?id=3438

I'd be surprised if issue# 3438 were related, though given that 
I'm not all that familiar with the compiler internals, I suppose 
that it could be. But 3438 has to do with struct constructors and 
should not have had any effect on classes. If it did, then it was 
an unintended side effect of the changes.

- Jonathan M Davis


More information about the Digitalmars-d mailing list