On Sat, Mar 24, 2012 at 18:07, Artur Skawina <art.08.09 at gmail.com> 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.