[Issue 9009] allow foreach without identifier
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 11 17:50:07 PST 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9009
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-01-11 17:50:06 PST ---
I think this is a worthy request, although you can use "_" as an unused
iteration variable you may end up having to invent unique names with 2 or more
nested foreach loops:
foreach(_; 0 .. n ) {
foreach(__; 0 .. m) {
// statements
}
}
Since foreach lowers to a for statement I think it should be possible to
implement the request.
Can we get a pre-approval from Walter/Andrei?
--
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