Go, D, and the GC
Jonathan M Davis via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 7 07:50:50 PDT 2015
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
More information about the Digitalmars-d
mailing list