http://d.puremagic.com/issues/show_bug.cgi?id=6365
Summary: AutoTupleDeclaration Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement 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 05:00:58 PDT --- Syntax: 'auto' '(' Identifier [',' Identifier ...] ')' '=' Initializer ';' Example: auto (num, msg) = TypeTuple!(1, "hello"); // built-in tuple assert(num == 1); assert(msg == "hello"); auto (name, age) = tuple("John", 10); // library tuple (= alias this tuple) assert(name == "John"); assert(age == 10); auto (n1, n2) = 100; // non tuple initializer assert(n1 == 100); assert(n2 == 100); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------