[Issue 21892] deprecation warning on reflection should be suppressed or at least suppressable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 14 16:25:08 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=21892
ponce <aliloko at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aliloko at gmail.com
--- Comment #5 from ponce <aliloko at gmail.com> ---
This is my +1, also hitting this.
In my case, the code that does it is:
foreach(memberName; __traits(allMembers, aClass))
{
alias P = __traits(getMember, aClass, memberName);
foreach(attr; __traits(getAttributes, P))
{{
// stuff
}}
}
Ideally there should be a way to:
- not trigger those deprecation warnings at reflection
- or the ability to get __traits(allMembersNoDeprecated)
--
More information about the Digitalmars-d-bugs
mailing list