Why I loved D :)

Brad Anderson eco at gnuk.net
Mon Oct 7 16:34:33 PDT 2013


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.


More information about the Digitalmars-d mailing list