[Issue 6652] foreach parameter with number range is always ref

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 16 08:58:20 PDT 2012


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



--- Comment #16 from Ryuichi OHORI <r.97all at gmail.com> 2012-06-16 09:00:32 PDT ---
(In reply to comment #14)
> > In my point of view, as a newcomer to D, more bug-prone is the current
> > behavior.

> Of course. But here the comparison wasn't between the current behavour and the
> phase 3. It was mostly a comparison between the phase 2 and phase 3.

What followed it was my opinion to it:
> > Even a new programmer *intends* to change the value of i when changing, if not just a typo.
The problem is that changing the value of a variable affects loop, not changing
itself.

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