[Issue 6956] std.algorithm.remove problem with SwapStrategy.unstable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri May 25 08:36:12 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6956
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-05-25 08:37:54 PDT ---
I don't know if a bug is opened about this but it seems relevant:
import std.algorithm;
import std.stdio;
void main()
{
int[] a = [1, 2, 3];
a = a.remove(3);
writeln(a);
}
writes [1, 2]
This should throw since index 3 is out of bounds.
--
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