User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Tue Nov 6 07:39:11 PST 2012


On 11/6/2012 5:04 AM, Jacob Carlborg wrote:
> I agree, I a syntax like this would have been nicer:
>
> @mtype("key" : "value") int a; or @mtype(key : "value") int a;
> @mtype("value") int b;
> @mtype int c;
>

Part of what I was trying to do was minimizing inventing new syntaxes. The

    [ ArgumentList ]

invents nothing new but the brackets. Your proposal is both a new syntax, and it 
can only do key/value pairs - nothing else.


More information about the Digitalmars-d-announce mailing list