Custom attributes (again)

Walter Bright newshound2 at digitalmars.com
Fri Apr 6 00:34:29 PDT 2012


On 4/6/2012 12:31 AM, Bernard Helyer wrote:
> I like it. Perhaps
>
> @attr(bar)
>
> could be equivalent to
>
> @attr(bar = true)
>
> so you don't get any weird failure state for __traits(getAttribute?


That's what the hasAttribute is for.


More information about the Digitalmars-d mailing list