On Wednesday, 7 October 2015 at 14:50:52 UTC, Jonathan M Davis
wrote:
On Wednesday, 7 October 2015 at 14:13:38 UTC, Meta wrote:
On Wednesday, 7 October 2015 at 09:59:05 UTC, Timon Gehr wrote:
struct S{
@disable this();
@disable enum init=0;
}
void main(){
S s; // error
auto d=S.init; // error
}
That's just awful.
Being able to declare a member named init is just asking for
trouble...
https://issues.dlang.org/show_bug.cgi?id=14237
https://issues.dlang.org/show_bug.cgi?id=7066
- Jonathan M Davis
https://issues.dlang.org/show_bug.cgi?id=12233 is also related
and incredibly bug-prone.