how to assign tuple named Tuple easily
Inquie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 12 16:16:48 PDT 2017
Tuple!(int, "A") x;
x = tuple(3);
fails of course
x = tuple!("A")(3);
Works but specifying the name seems to be redundant. Can we
simplify for the more complex case?
e.g.,
x = tuple!(GetTypleNames!x)(3);
which should then be possible to simplify even further to
x = tuple(3);
or, rather
x = tuple!x(3);
Possible for something like this?
More information about the Digitalmars-d-learn
mailing list