custom attribute proposal (yeah, another one)

Jacob Carlborg doob at me.com
Sat Apr 7 07:11:16 PDT 2012


On 2012-04-06 20:52, Steven Schveighoffer wrote:

> Also, if I see:
>
> @square(5) int foo();
>
> How do I know that I have to use __traits(getAttribute, foo, Area)?

Isn't "square" the name of the attribute? In that case you would use:

__traits(getAttribute, foo, square)

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list