struct init() method

Jonathan M Davis jmdavisProg at gmx.com
Sat Feb 25 15:18:37 PST 2012


On Saturday, February 25, 2012 17:07:14 Timon Gehr wrote:
> This is useful:
> 
> struct S{
>      @disable enum init = 0;
> }

I thought that the way that you were supposed to do that was

@disable this();

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list