custom attribute proposal (yeah, another one)
Steven Schveighoffer
schveiguy at yahoo.com
Fri Apr 6 10:37:10 PDT 2012
On Fri, 06 Apr 2012 12:53:51 -0400, Piotr Szturmaj <bncrbme at jadamspam.pl>
wrote:
> Andrej Mitrovic wrote:
>> On 4/6/12, Piotr Szturmaj<bncrbme at jadamspam.pl> wrote:
>>> Static opCall() should do the trick
>>
>> But it seems like a roundabout way to work around an implementation
>> issue just to enable annotations.
>
> What do you mean? You can also initialize structs without default
> contructor:
>
> struct Author { string name = "empty"; }
> // struct Author { string name; } - this works too
I think the point is, we should disallow:
@Author int x;
-Steve
More information about the Digitalmars-d
mailing list