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.

Reply via email to