Thread overview
Constants doesn't have UDA's?
Jun 10, 2013
Temtaime
Jun 10, 2013
Jack Applegame
Jun 10, 2013
Temtaime
June 10, 2013
Hello guys!

@("att") int t = 1;
auto b = [ __traits(getAttributes, t) ];

Works.

@("att") enum int t = 1;
auto b = [ __traits(getAttributes, t) ];

Works also.

@("att") const int t = 1;
auto b = [ __traits(getAttributes, t) ];

Doesn't work.
Error: first argument is not a symbol

Why?
Also a little another question can i detect if variable is static or not?
Regards.
June 10, 2013
http://forum.dlang.org/thread/htuakrtvoyymappjewps@forum.dlang.org
June 10, 2013
Oh, i see, thanks.

P.S. туй васю нигодяй.