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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 7 23:33:07 PST 2014


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



--- Comment #9 from Peter Alexander <peter.alexander.au at gmail.com> 2014-02-07 23:32:58 PST ---
(In reply to comment #8)
> Eh, shouldn't it just call t.toString() without even needing to look at alias
> this? I'm leaning toward either phobos bug or template
> specialization/constraint change.

Due to the alias this, the class is a range, so it calls the range version of
writeln.

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