http://d.puremagic.com/issues/show_bug.cgi?id=6365



--- Comment #24 from Kenji Hara <k.hara...@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: -------

Reply via email to