UDA syntax
Jacob Carlborg
doob at me.com
Wed Jan 16 23:27:34 PST 2013
On 2013-01-17 02:59, Joseph Cassman wrote:
> I was wondering what the syntax is for user defined attributes (i.e. bug
> 9222) implemented in release 2.061. I was still unclear after reading
> the thread forum.dlang.org/thread/k7afq6$2832$1 at digitalmars.com.
Here's the documentation:
http://dlang.org/attribute.html#uda
Ali did a pretty good explanation as well.
You can see how I used it for my serialization library:
https://github.com/jacob-carlborg/mambo/blob/master/mambo/core/Attribute.d
https://github.com/jacob-carlborg/mambo/blob/master/mambo/serialization/Serializer.d#L1481
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list