www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21943] New: `static import std;` should allow accessing all

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

          Issue ID: 21943
           Summary: `static import std;` should allow accessing all public
                    Phobos symbols by their FQN
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: petar.p.kirov gmail.com

cat > a.d << EOF
static import std;
void main()
{
    std.stdio.writeln(std.compiler.name);
}
EOF

dmd -run a.d

a.d(4): Error: undefined identifier stdio in package std, perhaps add static
import std.stdio;

--
May 21