On Sat, Mar 24, 2012 at 18:07, Artur Skawina <[email protected]> wrote:

>>     foreach (f; __traits(getOverloads, __traits(parent, main), "foo")) {

Hey, this
^^^^^^^^^^^^^^^^^^^^^^
it's a way to get the current module, right? Nice trick, I didn't think of this.

Its limitation is it won't work outside the 'main() {}' module.

Reply via email to