[Issue 6365] AutoTupleDeclaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 23 05:08:51 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6365
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> 2011-07-23 05:08:51 PDT ---
Also we can allow a static array on initializer like follows:
auto (x, y) = [10, 20];
assert(x == 10);
assert(y == 20);
But, it has a bit problem.
auto (x, y) = [10, 20, 30]; // interpreted as non tuple initializer
assert(x == [10, 20, 30]);
assert(y == [10, 20, 30]);
auto (x, y) = [10]; // interpreted as non tuple initializer
assert(x == [10]);
assert(y == [10]);
It is not inconsistent, but less useful.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list