Thread overview | |||||
---|---|---|---|---|---|
|
June 10, 2013 Constants doesn't have UDA's? | ||||
---|---|---|---|---|
| ||||
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 Re: Constants doesn't have UDA's? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Temtaime | http://forum.dlang.org/thread/htuakrtvoyymappjewps@forum.dlang.org |
June 10, 2013 Re: Constants doesn't have UDA's? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jack Applegame | Oh, i see, thanks. P.S. туй васю нигодяй. |
Copyright © 1999-2021 by the D Language Foundation