Custom attributes (again)
Walter Bright
newshound2 at digitalmars.com
Fri Apr 6 03:28:41 PDT 2012
On 4/6/2012 3:23 AM, Manu wrote:
> What about:
>
> struct editor
> {
> this(string name, EditType, Colour = Colour.Default, string description = null)
> {
> //...
> }
>
> blah blah blah
> }
>
> @attr(editor("thing",...blah...))
Are you really changing the arguments for every declaration? Or is it one set
that is repeated everywhere?
> I don't see the advantage over:
> @editor(...)
>
> ?
Name collisions with other @ attributes.
More information about the Digitalmars-d
mailing list