June 14, 2024 [Issue 24606] New: A way __traits(allMembers, ???) to exclude "alias" & "deprecated" member(s) | ||||
---|---|---|---|---|
| ||||
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") -- |
Copyright © 1999-2021 by the D Language Foundation