digitalmars.D.bugs - [Issue 24606] New: A way __traits(allMembers, ???) to exclude
- d-bugmail puremagic.com (25/25) Jun 14 https://issues.dlang.org/show_bug.cgi?id=24606
https://issues.dlang.org/show_bug.cgi?id=24606 Issue ID: 24606 Summary: A way __traits(allMembers, ???) to exclude "alias" & "deprecated" member(s) Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: apz28 hotmail.com struct A { int foo() { return 1; } alias bar1 = foo; deprecated("please use foo") alias bar3 = foo; } pragma(msg, __traits(allMembers, A)); // currently : AliasSeq!("foo", "bar1", "bar3") // with filter : AliasSeq!("foo") --
Jun 14