where is parameterNames?
Jacob Carlborg
doob at me.com
Tue Aug 14 09:06:30 PDT 2012
On 2012-08-14 06:40, Ellery Newcomer wrote:
> pragma(msg, __traits(parameterNames, Constructors[0]));
>
> gives me
>
> tok.d(19): Error: unrecognized trait parameterNames
I don't know if this works any better:
https://github.com/jacob-carlborg/orange/blob/master/orange/util/Reflection.d#L29
It's a simple implementation.
I also have a function which also you to call another function using
named arguments:
https://github.com/jacob-carlborg/orange/blob/master/orange/util/Reflection.d#L135
Neither of these two support delegate parameters.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list