User Defined Attributes
Jacob Carlborg
doob at me.com
Wed Nov 7 04:03:55 PST 2012
On 2012-11-07 10:06, Simen Kjaeraas wrote:
> Because string literals are just a special case of literals?
>
> i.e. if this works:
>
> struct MyString {
> string s;
> alias s this;
> }
>
> @MyString("Foo") int n;
>
> then why should this not work:
>
> @"Foo" int n;
>
> I agree it's useless, but it seems a very arbitrary restriction, too.
That's why I'm starting to think we need to declare an attribute, see
my other post:
http://forum.dlang.org/thread/k7bbsu$11ls$1@digitalmars.com#post-k7dijh:242ast:241:40digitalmars.com
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list