Created attachment 448
traits.c patch
Hello,
I'm trying to add a small __traits keyword to traits.c to get a function
parameter names, as :
void foo(in string name) would return [ "name" ];
void bar(in string firstname, in string lastname) would return [
"firstname", "lastname" ];
Thanks to Andrei & Walter for the first tips.
Please review the patch,
Thank you,
Julian.
Comment #1 by julien — 2009-09-10T06:59:30Z
Created attachment 449
Test case
Comment #2 by julien — 2009-09-10T06:59:58Z
Created attachment 450
id.h patch
Comment #3 by julien — 2009-09-10T07:00:29Z
Created attachment 451
id.c patch
Comment #4 by julien — 2010-08-15T11:10:52Z
Created attachment 717
dmd/idgen.c
Comment #5 by julien — 2010-08-15T11:11:40Z
Created attachment 718
dmd/traits.c
Comment #6 by julien — 2010-08-15T11:11:59Z
Created attachment 719
phobos/traits.d
Comment #7 by github-bugzilla — 2012-07-08T13:38:34Z