www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19581] New: allMembers of module does not include named imports

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

          Issue ID: 19581
           Summary: allMembers of module does not include named imports
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

Repro:

module test;
import std.string : format;
pragma(msg, __traits(allMembers, test).stringof);

Output: tuple("object")

Expected: tuple("object", "format").

Alternately, *some* way to detect imported modules and their symbols is
necessary. Of course, right now there's no reliable compiletime way to
determine imports at all.

--
Jan 14 2019