[Issue 16024] New: More struct/class/interface introspection helpers

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri May 13 14:34:41 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16024

          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 at puremagic.com
          Reporter: erikas.aubade at 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
handy:

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)

--


More information about the Digitalmars-d-bugs mailing list