On Tuesday, 12 April 2016 at 13:44:07 UTC, Mithun Hunsur wrote:
I'm looking for the equivalent of `typeof(this)` in module scope (so that it gets the current module).

The trick I use is `mixin(__MODULE__)`.

I also mentioned this in my book

https://www.packtpub.com/application-development/d-cookbook

the free sample is the reflection chapter which has a few tricks like this.

Reply via email to