http://d.puremagic.com/issues/show_bug.cgi?id=6369
Summary: alias this doesn't work with initializer Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2011-07-23 06:07:33 PDT --- 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"); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------