[Issue 18486] std.format cannot format const objects

2018-02-27 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18486

--- Comment #3 from github-bugzi...@puremagic.com ---
Commit pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/93dc74be78de197d8c1daa52d9bd1920d07d7f47
Merge pull request #6207 from JackStouffer/issue18486

Fix Issue 7879 - format of const class with non const toString()

--


[Issue 18486] std.format cannot format const objects

2018-02-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18486

Jack Stouffer  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #2 from Jack Stouffer  ---
(In reply to Jack Stouffer from comment #1)
> hasToString returns 1 for C and 0 for const(C).

Oh geez, it's because Object.toString isn't marked const.

*** This issue has been marked as a duplicate of issue 7879 ***

--


[Issue 18486] std.format cannot format const objects

2018-02-21 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18486

--- Comment #1 from Jack Stouffer  ---
hasToString returns 1 for C and 0 for const(C).

--