[Issue 7361] New: No documentation for front tuple expansion in foreach over range
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Jan 24 06:42:36 PST 2012
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 at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis <verylonglogin.reg at 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: -------
More information about the Digitalmars-d-bugs
mailing list