www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7361] New: No documentation for front tuple expansion in foreach over range

reply d-bugmail puremagic.com writes:
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



---
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
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7361


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs eml.cc



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