[Issue 4347] foreach over range should save range.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 5 18:51:12 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4347
Torarin <torarind at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |torarind at gmail.com
--- Comment #1 from Torarin <torarind at gmail.com> 2011-05-05 18:47:16 PDT ---
I think save() should be required, since the semantics of foreach when
iterating over arrays imply a save() on the array. Letting forward range
behaviour depend on whether the range is a class or a struct is bound to be
confusing.
--
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