October 16, 2013 how to get a (ref) tuple from a static array ? | ||||
---|---|---|---|---|
| ||||
Attachments:
| 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); } ---- |
Copyright © 1999-2021 by the D Language Foundation