Alias/Ref Tuples ?

Joshua Reusch yoschi at arkandos.de
Fri Dec 16 05:57:08 PST 2011


I found a way doing this with a simple function:

---
void explode(R, T...)(R range, ref T values) {
	static if(hasLength!R) assert(range.length == T.length);
	foreach(i, value; range) values[i] = value;
}
---

but a more self-documenting version would be nice.


More information about the Digitalmars-d-learn mailing list