New Traits
John Maschmeyer
jmaschme at gmail.com
Wed May 16 14:20:03 PDT 2012
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);
More information about the Digitalmars-d
mailing list