Nice. C++'s Boost uses the tuple library to accomplish this: int i; char c; double d; tie(i, c, d) = make_tuple(1, 'a', 5.5); Phobos don't have ref item tuples though so it's not quite so simple to do it using this approach in D unfortunately.