<div dir="ltr">So, about 2 years back I motivated a bunch of work on traits relating to parameter lists.<div>I'm looking at std.traits now, but I can't see one of the things that I could have sworn was added at the time.</div>
<div><br></div><div>I need to clone a functions parameter list, including the names and default args. Ie.</div><div><br></div><div>  void f(int x, float y = 10);</div><div>  void myFunc(CloneParameterList!f)<br></div><div>
  assert(myFunc.stringof == "void myFunc(int x, float y = 10)");<br></div><div><br></div><div>It wasn't that, but I recall agreeing that it was possible now... but I can't see how to do it.<br></div><div>
I thought it was implemented using a __traits, but nothing stands out to me.</div><div><br></div><div>Looking at the source in std.traits, it refers to FunctionTypeOf, which I don't recall anything about when we were implementing this stuff initially.</div>
<div>Perhaps there's been further development and changes since I last looked at it...?</div><div><br></div><div>Anyway, does anybody know a nice tidy way to do it?</div></div>