On 2019-04-02 15:23, Alex wrote:
__traits(getAttributes, T)Requires a type and a field is unfortunately not a type ;/
enum attr; struct Foo { @attr int a; } void main() { alias a = __traits(getAttributes, Foo.a); } -- /Jacob Carlborg
Jacob Carlborg via Digitalmars-d-learn Tue, 02 Apr 2019 11:51:01 -0700
On 2019-04-02 15:23, Alex wrote:
__traits(getAttributes, T)Requires a type and a field is unfortunately not a type ;/
enum attr; struct Foo { @attr int a; } void main() { alias a = __traits(getAttributes, Foo.a); } -- /Jacob Carlborg