Bug 21943 – `static import std;` should allow accessing all public Phobos symbols by their FQN

Status
NEW
Severity
minor
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-05-21T09:18:29Z
Last change time
2024-12-01T16:38:54Z
Assigned to
No Owner
Creator
ZombineDev
Moved to GitHub: phobos#9823 →

Comments

Comment #0 by petar.p.kirov — 2021-05-21T09:18:29Z
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;
Comment #1 by robert.schadek — 2024-12-01T16:38:54Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9823 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB