UDA syntax
Joseph Cassman
jc7919 at outlook.com
Thu Jan 17 12:13:52 PST 2013
On Thursday, 17 January 2013 at 04:38:14 UTC, Ali Çehreli wrote:
> On 01/16/2013 05:59 PM, Joseph Cassman wrote:
[...]
>
> /* This template is not directly related. (I expect it to be in
> Phobos; maybe
> * it's already there. (?))
> */
> template hasAttribute(T, AttributeInQuestion)
[...]
Ali
hasAttribute is an interesting encapsulation of UDA's usage. Will
probably make use of the idea.
Thanks for the practical examples of usage.
Joseph
More information about the Digitalmars-d-learn
mailing list