<div dir="ltr"><div>doesn't work with ref args:</div><div><br></div><div>void fun(ref int a,ref int b){</div><div>  a=1;</div><div>}</div><div>void main(){</div><div>  int a,b;</div><div>  import std.typecons;</div><div>
  fun(mixin("tuple(a,b).expand"));</div><div>  assert(a==1);//fails</div><div>}</div><div><br></div><div><br></div><div>and we can't do a logic such as: if there's ref args use Alias, otherwise use tuple().expand because there could be a mix of the two</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 15, 2013 at 5:56 PM, Dicebot <span dir="ltr"><<a href="mailto:public@dicebot.lv" target="_blank">public@dicebot.lv</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wednesday, 16 October 2013 at 00:36:46 UTC, Timothee Cour wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
...<br>
</blockquote>
<br>
Have you tried run-time tuple?<br>
<br>
```<br>
import std.typecons;<br>
writeln(mixin("tuple(&a,&b).<u></u>expand"));<br>
```<br>
</blockquote></div><br></div>