http://d.puremagic.com/issues/show_bug.cgi?id=4228
Summary: std.array.replace contains 2 bugs Product: D Version: 2.041 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: zan77...@nifty.com --- Comment #0 from SHOO <zan77...@nifty.com> 2010-05-23 10:59:40 PDT --- 1. std.array.replace cannot receive null It should run following code: ---------- int[] a = [1, 4, 5]; replace(a, 1u, 2u, null); assert(a == [1, 5]); ---------- 2. std.array.replace have strange behavior when array.length shrinks. It should run following code: ---------- int[] a = [1, 4, 5]; replace(a, 1u, 4u, [2]); assert(a == [1, 2]); ---------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------