On Wed, Aug 15, 2012 at 6:46 PM, David Nadlinger <[email protected]> wrote:
> On Tuesday, 14 August 2012 at 16:06:33 UTC, Jacob Carlborg wrote:
>>
>>
>> https://github.com/jacob-carlborg/orange/blob/master/orange/util/Reflection.d#L29
>
>
> Related:
> https://github.com/D-Programming-Language/phobos/blob/master/std/traits.d#L510

Hmm:

static if (is(typeof(func[0]) PT == __parameters))

__parameters is a new feature in is()' treasure vault, right?

Testing it, it seems to return the parameter tuple of a function.
That's cool. However, that'd be cooler if it was documented somewhere.
Was that in 2.060 changelog?

Reply via email to