digitalmars.D.bugs - [Issue 7361] New: No documentation for front tuple expansion in foreach over range
- d-bugmail puremagic.com (26/26) Jan 24 2012 http://d.puremagic.com/issues/show_bug.cgi?id=7361
- d-bugmail puremagic.com (11/11) Mar 26 2013 http://d.puremagic.com/issues/show_bug.cgi?id=7361
http://d.puremagic.com/issues/show_bug.cgi?id=7361 Summary: No documentation for front tuple expansion in foreach over range Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nobody puremagic.com ReportedBy: verylonglogin.reg gmail.com --- Comment #0 from Denis <verylonglogin.reg gmail.com> 2012-01-24 17:42:36 MSK --- As kenji hara wrote in NG: Today, foreach can expand the front tuple automatically. foreach (i, e; zip(sequence!"n", range)) { // i = 0, 1, 2, ... // e = elements of range } So extra unpacking syntax is not need. Kenji Hara -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 24 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7361 bearophile_hugs eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bearophile_hugs eml.cc --- Comment #1 from bearophile_hugs eml.cc 2013-03-26 06:05:28 PDT --- In Issue 9817 I have suggested to remove that syntax, and replace it with something more explicit and more flexible. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 26 2013