DIP64: Attribute Cleanup
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 20 12:49:26 PDT 2014
On Friday, 20 June 2014 at 19:22:04 UTC, Brian Schott wrote:
> http://wiki.dlang.org/DIP64
>
> Attributes in D have two problems:
> 1. There are too many of them and declarations are getting too
> verbose
> 2. New attributes use @ and the old ones do not.
>
> I've created a DIP to address these issues.
Does this work for all attributes? For example:
@OneTo5 = @(1) @(2) @(3) @(4) @(5);
And will this be possible?
struct Test
{
string str;
}
@Tattr(str) = @Test(str);
@Tattr = @Test("");
More information about the Digitalmars-d
mailing list