digitalmars.D.bugs - [Issue 6041] New: std.algorithm.remove wrong code in assert
- d-bugmail puremagic.com (20/20) May 20 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6041
- d-bugmail puremagic.com (12/12) Jul 30 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6041
http://d.puremagic.com/issues/show_bug.cgi?id=6041 Summary: std.algorithm.remove wrong code in assert Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: andrej.mitrovich gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2011-05-20 18:28:44 PDT --- int[] a = [ 1, 2, 3, 2, 3, 4, 5, 2, 5, 6 ]; assert(a[0 .. $ - remove!("a == 2")(a).length] == [ 1, 3, 3, 4, 5, 5, 6 ]); Last line should be: assert(a[0 .. remove!("a == 2")(a).length] == [ 1, 3, 3, 4, 5, 5, 6 ]); -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
May 20 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6041 Jonathan M Davis <jmdavisProg gmx.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |jmdavisProg gmx.com Resolution| |FIXED --- Comment #1 from Jonathan M Davis <jmdavisProg gmx.com> 2011-07-30 20:49:15 PDT --- This appears to have been fixed. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jul 30 2011