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: nob...@puremagic.com
        ReportedBy: verylonglogin....@gmail.com


--- Comment #0 from Denis <verylonglogin....@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: -------

Reply via email to