D has tuple declaration like follows: TypeTuple!(int, int) f = 10; assert(f[0] == 10); assert(f[1] == 10); But, alias this tuple is not expanded automatically: TypeTuple!(int, string) f = tuple(10, "str"); assert(f[0] == 10); assert(f[1] == "str"); And, built-in tuple also should allow on initializer: TypeTuple!(int, string) f = TypeTuple!(10, "str"); assert(f[0] == 10); assert(f[1] == "str");
(In reply to comment #0) > D has tuple declaration like follows: > > TypeTuple!(int, int) f = 10; > assert(f[0] == 10); > assert(f[1] == 10); See bug 6367
https://github.com/D-Programming-Language/dmd/commit/356593e3fff24bdd3e3bfa742dab52740ce1e595