Choosing arity of a template function

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Thu Mar 3 13:06:12 PST 2016


On 03/03/2016 02:54 PM, Meta wrote:
> On Friday, 26 February 2016 at 23:09:52 UTC, Andrei Alexandrescu wrote:
>> So, what's an elegant solution to this? I looked up std.traits but
>> nothing seems to help. (Tried arity, no avail.)
>
> There's this[1] PR which implements exactly what you want, but it's
> currently not passing the auto-tester.
>
> 1. https://github.com/D-Programming-Language/dmd/pull/5201

Thanks! That will push introspection considerably further. I toggled 
auto-pull. -- Andrei


More information about the Digitalmars-d mailing list