[Issue 5435] Static foreach over tuple ignores type annotation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 8 23:29:31 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5435


Brad Roberts <braddr at puremagic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |


--- Comment #3 from Brad Roberts <braddr at puremagic.com> 2011-01-08 23:27:48 PST ---
Reopening.  To be clear, I think the only two valid syntax's should be:

foreach(t; tuple) { ... }

or

foreach(auto t; tuple) { ... }

I could be convinced that specifying a type is ok, but only for the case of a
tuple where all the values match the specified type.

-- 
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