User Defined Attributes (UDA) in Phobos/druntime

Idan Arye GenericNPC at gmail.com
Tue Jun 11 17:42:22 PDT 2013


On Tuesday, 11 June 2013 at 21:04:40 UTC, QAston wrote:
> The other way around would be to operate on 
> @SerializationAttribute specific to the lib so you can fetch 
> only the attributes you're interested in easily.

How about passing template arguments to `@attribute` to determine 
what libraries the UDA it declares belong to?

Here is an example implementation: 
https://gist.github.com/someboddy/5762072


More information about the Digitalmars-d mailing list