digitalmars.D.learn - Constants doesn't have UDA's?
- Temtaime (15/15) Jun 09 2013 Hello guys!
- Jack Applegame (1/1) Jun 10 2013 http://forum.dlang.org/thread/htuakrtvoyymappjewps@forum.dlang.org
- Temtaime (2/2) Jun 10 2013 Oh, i see, thanks.
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.
Jun 09 2013
http://forum.dlang.org/thread/htuakrtvoyymappjewps forum.dlang.org
Jun 10 2013