[Issue 6365] AutoTupleDeclaration
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jul 23 05:17:59 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6365
--- Comment #3 from Kenji Hara <k.hara.pg at gmail.com> 2011-07-23 05:17:57 PDT ---
(In reply to comment #2)
> (In reply to comment #0)
>
> > auto (n1, n2) = 100; // non tuple initializer
> > assert(n1 == 100);
> > assert(n2 == 100);
>
> This *must* be a compile-time error.
This is keeping consistent feature.
Current D allow compilation of following code:
TypeTuple!(int, int) f = 10;
assert(f[0] == 10);
assert(f[1] == 10);
--
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