On Wednesday, 16 May 2012 at 17:08:43 UTC, Philippe Sigaud wrote:
If you give it a module name (qualified with package name), does it
output the entire module code?

Yes

what does this output?

int foo() { return 0;}
int foo(int i) { return i+1; }
void foo(double d) { }

foreach(i,overload; __traits(getOverloads, "foo"))
    writeln(overload.codef);

int foo();

int foo(int i);

void foo(double d);

Reply via email to