{"issue":{"pull_request":{"diff_url":"https://github.com/D-Programming-Language/dmd/pull/341.diff","html_url":"https://github.com/D-Programming-Language/dmd/pull/341","patch_url":"https://github.com/D-Programming-Language/dmd/pull/341.patch"},"state":"open","milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/58e2a2560f187a0d9542fae68035ffcf?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"58e2a2560f187a0d9542fae68035ffcf","url":"https://api.github.com/users/9rnsr","login":"9rnsr","id":254394},"assignee":null,"updated_at":"2011-11-14T05:28:16Z","labels":[],"closed_at":null,"comments":3,"url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/341","body":"http://d.puremagic.com/issues/show_bug.cgi?id=6365\r\n\r\nBased on #321, declare multiple variables at once, and initialize them in the corresponding tuple fields.\r\n\r\nSyntax:\r\n<pre>\r\nTupleDeclaration:\r\n    <a href=\"http://d-programming-language.org/declaration.html#StorageClasses\">StorageClasses</a> <b>(</b> TupleTypeList <b>)</b> <b>=</b> <a href=\"http://d-programming-language.org/declaration.html#Initializer\">Initializer</a> <b>;</b>\r\n    <b>(</b> TupleTypeList <b>)</b> <b>=</b> <a href=\"http://d-programming-language.org/declaration.html#Initializer\">Initializer</a> <b>;</b>\r\n\r\nTupleTypeList:\r\n    TupleType\r\n    TupleType <b>,</b> TupleTypeList\r\n\r\nTupleType:\r\n    <a href=\"http://d-programming-language.org/declaration.html#StorageClasses\">StorageClasses</a> <a href=\"http://d-programming-language.org/declaration.html#BasicType\">BasicType</a> <a href=\"http://d-programming-language.org/declaration.html#Declarator\">Declarator</a>\r\n    <a href=\"http://d-programming-language.org/declaration.html#BasicType\">BasicType</a> <a href=\"http://d-programming-language.org/declaration.html#Declarator\">Declarator</a>\r\n    <a href=\"http://d-programming-language.org/declaration.html#StorageClasses\">StorageClasses</a> Identifier\r\n    Identifier\r\n</pre>\r\n\r\nTupleTypeList is similar to <a href=\"http://d-programming-language.org/statement.html#ForeachTypeList\">ForeachTypeList</a>.\r\n\r\nIf you want to write left parenthesis at beginning, you cannot omit the type or storage class of first variable.\r\n<pre>\r\n(x, y) = getCoordinate();  // NG, this is not multiple var declaration\r\n(auto x, y) = getCoordinate();  // OK\r\n(double x, y) = getCoordinate();  // OK, types are specified explicitly\r\n</pre>","html_url":"https://github.com/D-Programming-Language/dmd/issues/341","title":"Issue 6365 - Multiple var declaration (AutoTupleDeclaration)","number":341,"id":1500146,"created_at":"2011-08-27T09:45:28Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/c84b2a3332abdc3772c00f74e35e0353?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c84b2a3332abdc3772c00f74e35e0353","url":"https://api.github.com/users/dsimcha","login":"dsimcha","id":585814},"updated_at":"2011-11-14T05:28:16Z","url":"https://api.github.com/repos/D-Programming-Language/dmd/issues/comments/2726851","body":"I love this idea.  Is there any language design-level reason why it shouldn't be included or are we just waiting for Walter to get around to merging it?","id":2726851,"created_at":"2011-11-14T05:28:16Z"}}