www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17643] New: std.traits.getSymbolsByUDA doesn't work with

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 puremagic.com
          Reporter: greensunny12 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); --- --
Jul 12