custom attribute proposal (yeah, another one)

Steven Schveighoffer schveiguy at yahoo.com
Mon Apr 9 06:13:51 PDT 2012


On Sat, 07 Apr 2012 10:00:19 -0400, Jacob Carlborg <doob at me.com> wrote:

> On 2012-04-06 19:37, Steven Schveighoffer wrote:
>> On Fri, 06 Apr 2012 12:53:51 -0400, Piotr Szturmaj
>>> struct Author { string name = "empty"; }
>>> // struct Author { string name; } - this works too
>>
>> I think the point is, we should disallow:
>>
>> @Author int x;
>>
>> -Steve
>
> Why?

I misspoke.  The person who implemented the @Author attribute probably  
wants to disallow specifying an Author attribute without a name.  I don't  
think we should disallow that on principle, I meant in the context it  
should be disallowed.

-Steve


More information about the Digitalmars-d mailing list