Referencing an overloaded function

Philippe Sigaud philippe.sigaud at gmail.com
Sat Mar 24 13:07:57 PDT 2012


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.


More information about the Digitalmars-d-learn mailing list