User Defined Attributes

Walter Bright newshound2 at digitalmars.com
Wed Nov 7 12:35:04 PST 2012


On 11/7/2012 4:01 AM, Jacob Carlborg wrote:
> I start to more and more think it would be better to explicitly require the
> developer to declare an attribute, like:
>
> attribute foo
> {
>      string name;
> }
>
> @foo("asd") int a;

Adding a whole new aggregate type is a pretty intrusive and major change.



More information about the Digitalmars-d-announce mailing list