[Issue 12470] std.array.replace does not work with inout(char)[]

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 27 04:12:08 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12470



--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 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 cannot work with const(char)[] nor with
> immutable(char)[].

I thought it was supposed to allocate a new array to store the result to?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list