[Issue 17643] New: std.traits.getSymbolsByUDA doesn't work with private attributes
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Wed Jul 12 17:24:30 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=17643
Issue ID: 17643
Summary: std.traits.getSymbolsByUDA doesn't work with private
attributes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: greensunny12 at gmail.com
There's currently a publicly documented example about using getSymbolsByUDA
with private attributes. This only works because the example is in std.traits
> dmd -c test.d
tuple(a)
---
import std.traits;
enum Attr;
struct A
{
@Attr int a;
@Attr private int c;
}
pragma(msg, getSymbolsByUDA!(A, Attr).stringof);
---
--
More information about the Digitalmars-d-bugs
mailing list