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