So, User-Defined Attributes

Walter Bright newshound2 at digitalmars.com
Sat Jan 5 23:16:39 PST 2013


On 1/5/2013 10:57 PM, Domain wrote:
> On Saturday, 5 January 2013 at 22:57:03 UTC, Jacob Carlborg wrote:
>> On 2013-01-05 23:44, Philippe Sigaud wrote:
>>
>>> Well, first that would be nice to have the grammar online :)
>>
>> Yeah, still waiting for that pull request to be merged.
>
> UDA can not apply to function argument?
>
> enum attr;
> void func(@attr int a) // <-- error
> {
>      @attr int b;       // <-- ok
> }

Currently, no.


More information about the Digitalmars-d mailing list