[Issue 17441] std.traits.moduleName gives wrong answer for modules imported under a different name in a mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 15 06:29:14 UTC 2020


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

Boris Carvajal <boris2.9 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |boris2.9 at gmail.com
         Resolution|DUPLICATE                   |---

--- Comment #4 from Boris Carvajal <boris2.9 at gmail.com> ---
Although similar to issue 14501 this doesn't deal with enums (that seems more
hard to fix).

I have a working solution for the examples except the Atila's last part:

    import foo.bar;
    pragma(msg, foo.bar.stringof); // "package bar"
    import oops = foo.bar;
    pragma(msg, oops.stringof);    // "module bar"

which I think belongs to another bug report.

--


More information about the Digitalmars-d-bugs mailing list