Thread overview
[Issue 18625] mixin(__MODULE__) in string mixin results in undefined identifier in certain cases
Mar 17, 2018
ag0aep6g
Nov 30, 2022
Adam D. Ruppe
Dec 17, 2022
Iain Buclaw
Jul 15
Bolpat
March 17, 2018
https://issues.dlang.org/show_bug.cgi?id=18625

ag0aep6g <ag0aep6g@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g@gmail.com
           Hardware|x86                         |All
                 OS|Windows                     |All
           Severity|enhancement                 |normal

--- Comment #1 from ag0aep6g <ag0aep6g@gmail.com> ---
Reduced:

----
module y.asdf;
pragma(msg, __MODULE__); /* y.asdf */
pragma(msg, mixin("__MODULE__")); /* asdf */
----

Both lines should print "y.asdf".

--
November 30, 2022
https://issues.dlang.org/show_bug.cgi?id=18625

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #2 from Adam D. Ruppe <destructionator@gmail.com> ---
general problem here is the compiler likes to pretend modules have one name and are part of a package instead of just being a thing that has multiple parts separated by dots in the one thing. so painful, module reflection needs work

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=18625

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
July 15
https://issues.dlang.org/show_bug.cgi?id=18625

Bolpat <qs.il.paperinik@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from Bolpat <qs.il.paperinik@gmail.com> ---
This was fixed in 2.108.

--