[Issue 4112] Stride in foreach ranges

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 9 06:13:54 PST 2011


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


Andrei Alexandrescu <andrei at metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrei at metalanguage.com


--- Comment #3 from Andrei Alexandrescu <andrei at metalanguage.com> 2011-02-09 06:11:30 PST ---
(In reply to comment #2)
> (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.

That's traverse the interval i..j/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