Go, D, and the GC

Kapps via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 7 21:37:55 PDT 2015


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.


More information about the Digitalmars-d mailing list