inout(char)[]
https://github.com/dlang/phobos/commit/fc468500c90894919cec3783ce674f9b0f9b329e
Merge pull request #5735 from BBasile/issue-12470
fix issue 12470 - std.array.replace does not work with inout(char)[]
--
https://issues.dlang.org/show_bug.cgi?id=12470
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|-
https://issues.dlang.org/show_bug.cgi?id=12470
--- Comment #7 from github-bugzi...@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/722ecd878cfde16a87d1f04e2ed3f5df08a9b78d
fix issue 12470 - std.array.replace does not work with
https://d.puremagic.com/issues/show_bug.cgi?id=12470
Ali Cehreli changed:
What|Removed |Added
CC||acehr...@yahoo.com
--- Comment #1 from
https://d.puremagic.com/issues/show_bug.cgi?id=12470
--- Comment #2 from Andrej Mitrovic 2014-03-27
12:12:05 CET ---
(In reply to comment #1)
> Still, that code cannot be compiled, right?
>
> inout is a wildcard that should be able to take place of const and immutable
> but std.array.replace
https://d.puremagic.com/issues/show_bug.cgi?id=12470
monarchdo...@gmail.com changed:
What|Removed |Added
CC||monarchdo...@gmail.com
--- C
https://d.puremagic.com/issues/show_bug.cgi?id=12470
--- Comment #4 from Ali Cehreli 2014-03-27 10:40:12 PDT ---
Sorry for the noise. :( Yes, I thought it was in-place.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because:
https://issues.dlang.org/show_bug.cgi?id=12470
--- Comment #5 from Andrej Mitrovic ---
It seems the bottom-line problem is this:
-
import std.array;
import std.range;
inout(char)[] sanitize(inout(char)[] input)
{
auto app = appender!(inout(char)[])();
// fails because of inout(char