@property - take it behind the woodshed and shoot it?

Zach the Mystic reachBUTMINUSTHISzach at gOOGLYmail.com
Sat Jan 26 21:57:02 PST 2013


On Sunday, 27 January 2013 at 05:32:25 UTC, Zach the Mystic wrote:
> On Sunday, 27 January 2013 at 02:54:55 UTC, Adam D. Ruppe wrote:
>> It would be cool if we could declare variables with anonymous 
>> types;
>>
>> struct { opAssign() {} } foo;
>
> This would be much easier to understand:
>
> alias foo struct { opAssign() {} };
>
> Is "singleton structures", a.k.a. properties, a good name for 
> these?

Actually, I don't even think you need alias:

foo struct { opAssign() {} }


More information about the Digitalmars-d mailing list