Re: Copying parameter lists verbatim

2014-07-20 Thread Jakob Ovrum via Digitalmars-d
On Saturday, 19 July 2014 at 17:40:01 UTC, Andrei Alexandrescu wrote: On 7/19/14, 9:36 AM, Jakob Ovrum wrote: On Saturday, 19 July 2014 at 06:13:10 UTC, Manu via Digitalmars-d wrote: Anyway, does anybody know a nice tidy way to do it? Unfortunately the only way to create perfect forwarding

Re: Copying parameter lists verbatim

2014-07-19 Thread Dicebot via Digitalmars-d
Also, vibe.d internal `cloneFunction` which generates copy of method/function signature with fully qualified type names (for mixin hygiene): https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/internal/meta/codegen.d#L177

Re: Copying parameter lists verbatim

2014-07-19 Thread Dicebot via Digitalmars-d
http://dlang.org/phobos/std_traits.html#ParameterIdentifierTuple http://dlang.org/phobos/std_traits.html#ParameterDefaultValueTuple http://dlang.org/phobos/std_traits.html#ParameterTypeTuple ?

Re: Copying parameter lists verbatim

2014-07-19 Thread Jakob Ovrum via Digitalmars-d
On Saturday, 19 July 2014 at 06:13:10 UTC, Manu via Digitalmars-d wrote: Anyway, does anybody know a nice tidy way to do it? Unfortunately the only way to create perfect forwarding functions completely generically is still using an ugly string mixin that generates the forwarding function. A

Re: Copying parameter lists verbatim

2014-07-19 Thread Andrei Alexandrescu via Digitalmars-d
On 7/19/14, 9:36 AM, Jakob Ovrum wrote: On Saturday, 19 July 2014 at 06:13:10 UTC, Manu via Digitalmars-d wrote: Anyway, does anybody know a nice tidy way to do it? Unfortunately the only way to create perfect forwarding functions completely generically is still using an ugly string mixin