[Issue 13971] Writing a container should write its default range

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 12 10:44:52 PST 2015


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

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator at gmail.com> ---
I'm not sure this should be in writeln btw, I think Array and friends should
just have a toString(sink) function that forwards to the range.

We could provide a phobos mixin template forwardToStringTo!(member) to keep it
DRY.

--


More information about the Digitalmars-d-bugs mailing list