www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16024] New: More struct/class/interface introspection helpers


          Issue ID: 16024
           Summary: More struct/class/interface introspection helpers
           Product: D
           Version: D2
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: erikas.aubade gmail.com

Having std.traits.Fields and FieldNameTuple is a very nice thing for part of
the work in introspecting a struct or class, but a few new ones would be very

1) templates for listing all static or non-static member functions 
2) a template for listing static fields
3) templates for nested types
4) templates that can be used to with std.meta templates to filter according to
protection level (ideally, ones that won't trip the new 2.071 deprecations)

May 13 2016