[Issue 9506] When using alias this, writeln modifies its argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 8 00:33:00 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=9506



--- Comment #12 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-08 00:32:58 PST ---
(In reply to comment #11)
> writeln *must* have side-effects to work with input ranges. How do you consume
> a one-pass input without modifying it?

Fair enough. It is a bit of a surprise to new users though, but then again
'alias this' is an advanced feature.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list