[Issue 4112] Stride in foreach ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 9 05:46:41 PST 2011


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



--- Comment #2 from Denis Derman <denis.spir at gmail.com> 2011-02-09 05:44:17 PST ---
(Grrr! How can we edit our own posts? Could not find it.)

That was supposed to be:

Finally, if ever we had a step syntax for i..j, I would prefere '/' than ':',
read as "by": 
    foreach (n ; i..j/k)
--> traverse the interval i..j 'by' (steps of) k.

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