[Issue 5666] std.array.replace compile error (string and immutable string)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 10 06:11:06 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5666
--- Comment #3 from Takuya Kurosawa <d_lang at 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: -------
More information about the Digitalmars-d-bugs
mailing list