Bug 16003 – stringof for module doesn't include full path

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-05-08T08:03:00Z
Last change time
2016-05-08T18:43:16Z
Assigned to
nobody
Creator
dmitry.olsh

Comments

Comment #0 by dmitry.olsh — 2016-05-08T08:03:10Z
import std.stdio; pragma(msg, std.stdio); Prints: module stdio Would be useful if it printed "module std.stdio" as it's more complete information.
Comment #1 by dmitry.olsh — 2016-05-08T08:07:04Z
This blocks a new DIP on exceptions. See brief outline here: https://github.com/dlang/phobos/pull/3491
Comment #2 by dmitry.olsh — 2016-05-08T18:43:16Z
There is a way to get module's parent with __traits(parent, ...) so closing this.