When using `@disable this(this)` on a struct, `to!string` fails on it.
to!string should probably be changed to pass by reference.
Comment #1 by eyal — 2016-06-06T09:51:14Z
This seems related #9489.
Fixing this should probably involve overloading all the relevant methods in std.conv to support taking by ref as well as by-value.
Comment #2 by eyal — 2017-05-23T21:40:13Z
This makes it slightly more painful to do some kinds of types representing resources in D.
Comment #3 by jack — 2017-05-24T17:28:23Z
Hmm, fixing this has me down a rabbit hole.
to!string relies on std.format for all conversions of aggregate types, and all of std.format copies as well. This is going to be a very ugly PR.
Comment #4 by jack — 2017-05-24T17:32:03Z
(In reply to Jack Stouffer from comment #3)
> Hmm, fixing this has me down a rabbit hole.
>
> to!string relies on std.format for all conversions of aggregate types, and
> all of std.format copies as well. This is going to be a very ugly PR.
Scratch that. Someone thought ahead and there's a function in std.format for this. Fix soon