[Issue 6365] AutoTupleDeclaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jul 26 02:45:18 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6365
--- Comment #24 from Kenji Hara <k.hara.pg at gmail.com> 2011-07-26 02:45:09 PDT ---
(In reply to comment #1)
> Also we can allow a static array on initializer like follows:
>
> auto (x, y) = [10, 20];
> assert(x == 10);
> assert(y == 20);
A few days ago, I wrote as above, but I think this is not good now.
Static arrays and array literals are certainly looks like a tuple, but in fact
they are not a tuple.
I think it is incorrect that dealing with them as tuples in TupleDeclaration.
I'll remove the feature from the experimental patch.
--
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