http://d.puremagic.com/issues/show_bug.cgi?id=5666



--- Comment #3 from Takuya Kurosawa <d_l...@ku6.jp> 2011-03-10 06:08:01 PST ---
Sorry. My description was so bad.

I want use 'R1 replace(R1, R2, R3)(R1 subject, R2 from, R3 to)' replacement for
std.string.replace.

----
import std.array;

void main()
{
    string r = "de";
    string replaced = replace("abcde", "abc", r);
}
---
This code is no problem.


----
import std.array;

void main()
{
    immutable string r = "de";
    string replaced = replace("abcde", "abc", r);
}
---
But, this code is failed.

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

Reply via email to