[Issue 8061] std.algorithm.joiner breaks when used with InputRangeObject
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 20 08:52:35 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8061
--- Comment #7 from William Moore <nyphbl8d at gmail.com> 2012-12-20 08:52:32 PST ---
The core of this issue is that "auto a = b;" is *SOMETIMES* equivalent to "auto
a = b.save;". This is what made me run away from ranges screaming. Assignment
can mean two entirely different things and affects passing ranges as parameters
as well. The easiest way to avoid this problem is to only pass ranges by ref
and only assign a range when calling .save explicitly.
--
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