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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 17 13:26:59 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=9506

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|wrong-code                  |
                 CC|                            |schveiguy at yahoo.com

--- Comment #15 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Adam D. Ruppe from 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.

Yes, the bug here is that it sees the item as a range over a more specific "I
know how to represent myself as a string".

Removing wrong-code, this isn't a compiler issue.

--


More information about the Digitalmars-d-bugs mailing list