[Issue 5712] New: [patch] std.regex.replace disallows w/dstring
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 6 10:50:44 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5712
Summary: [patch] std.regex.replace disallows w/dstring
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: patch, rejects-valid
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: rayerd.wiz at gmail.com
--- Comment #0 from Haruki Shigemori <rayerd.wiz at gmail.com> 2011-03-06 10:47:47 PST ---
Created an attachment (id=930)
std.regex.replace came to accept w/dstring
This issue was reported at 2ch.net.
import std.regex;
void main() {
.replace("a", .regex("a"), "b"); // ok
.replace("a"w, .regex("a"w), "b"w); // compile error
.replace("a"d, .regex("a"d), "b"d); // compile error
}
--
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