Is there a way to get the names of a function's parameters?
BCS
none at anon.com
Sun Jun 13 17:20:56 PDT 2010
Hello Adam,
> Given:
>
> void foo(int a, string b);
>
> You can use std.traits.ParameterTypeTuple to get (int, string).
>
> Is there any method, at all, to get ("a", "b") out of it? I can't find
> one, and am considering import("mysrc.d"); and finding it that way,
> but figured I'd ask first.
>
No need to parse the whole source:
http://codepad.org/ozZzC98d
--
... <IXOYE><
More information about the Digitalmars-d
mailing list