Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread Mathias LANG via Digitalmars-d-learn
An exemple being fullyQualifiedName: https://github.com/D-Programming-Language/phobos/blob/master/std/traits.d#L415 I don't get this pattern. Is it documented somewhere ?

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread Low Functioning via Digitalmars-d-learn
On Thursday, 18 December 2014 at 15:48:02 UTC, Mathias LANG wrote: An exemple being fullyQualifiedName: https://github.com/D-Programming-Language/phobos/blob/master/std/traits.d#L415 I don't get this pattern. Is it documented somewhere ? http://dlang.org/variadic-function-templates.html

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread Dicebot via Digitalmars-d-learn
On Thursday, 18 December 2014 at 15:48:02 UTC, Mathias LANG wrote: An exemple being fullyQualifiedName: https://github.com/D-Programming-Language/phobos/blob/master/std/traits.d#L415 I don't get this pattern. Is it documented somewhere ? Full pattern looks like this: template foo(T...)

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread ketmar via Digitalmars-d-learn
On Thu, 18 Dec 2014 15:52:06 + Low Functioning via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 18 December 2014 at 15:48:02 UTC, Mathias LANG wrote: An exemple being fullyQualifiedName:

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/18/14 11:21 AM, ketmar via Digitalmars-d-learn wrote: On Thu, 18 Dec 2014 15:52:06 + Low Functioning via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On Thursday, 18 December 2014 at 15:48:02 UTC, Mathias LANG wrote: An exemple being fullyQualifiedName:

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread ketmar via Digitalmars-d-learn
On Thu, 18 Dec 2014 11:26:20 -0500 Steven Schveighoffer via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: On 12/18/14 11:21 AM, ketmar via Digitalmars-d-learn wrote: On Thu, 18 Dec 2014 15:52:06 + Low Functioning via Digitalmars-d-learn digitalmars-d-learn@puremagic.com

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread Mathias LANG via Digitalmars-d-learn
On Thursday, 18 December 2014 at 16:10:31 UTC, Dicebot wrote: On Thursday, 18 December 2014 at 15:48:02 UTC, Mathias LANG wrote: An exemple being fullyQualifiedName: https://github.com/D-Programming-Language/phobos/blob/master/std/traits.d#L415 I don't get this pattern. Is it documented

Re: Why do std.traits use template foo(args...) instead of foo(alias arg) ?

2014-12-18 Thread Dicebot via Digitalmars-d-learn
On Thursday, 18 December 2014 at 17:20:28 UTC, Mathias LANG wrote: Thanks for the precision. Is it something that is going to be fixed, or is it by design ? It is something that most likely would have been designed differently if we had another chance (aka D3) but unlikely to change in D2 as