[ ArgumentList ] vs. @( ArgumentList )
deadalnix
deadalnix at gmail.com
Wed Nov 7 12:35:31 PST 2012
Le 07/11/2012 21:24, Walter Bright a écrit :
> On 11/7/2012 11:40 AM, Jonas Drewsen wrote:
>> I we were to allow for @foobar style UDA then "safe" would have to be
>> a reserved
>> keyword somehow. Otherwise I do not know what this would mean:
>>
>> struct safe { }
>> @safe void foobar() { }
>
> Yes, I agree this is a significant problem.
>
As a cross topic answer, I'll mention that allowing anything to be an
attribute is likely to be a bad idea, and that way to solve that are
already discussed.
More information about the Digitalmars-d
mailing list