Go, D, and the GC

Meta via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 7 07:13:35 PDT 2015


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.


More information about the Digitalmars-d mailing list