struct init() method
Alex Rønne Petersen
xtzgzorex at gmail.com
Sat Feb 25 15:23:47 PST 2012
On 26-02-2012 00:18, Jonathan M Davis wrote:
> 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
Yeah, I'm not sure what purpose the other example serves.
--
- Alex
More information about the Digitalmars-d-learn
mailing list