www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - how to get a (ref) tuple from a static array ?

how to write a expand function that satisfies the following?

----
void fun(ref int a,ref int b){
  a=1;
}
void main(){
  int[2]c;
  fun(c.expand);
  assert(c[0]==1);
}
----
Oct 15 2013