[Issue 6645] New: moveAll is not @trusted
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Sep 11 10:07:19 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6645
Summary: moveAll is not @trusted
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: dmitry.olsh at gmail.com
--- Comment #0 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2011-09-11 10:07:03 PDT ---
Another one in @safe series.
This fails bacause moveAll is @system:
import std.algorithm;
@safe void f()
{
int[] a = [1,2,3];
int[] b = new int[3];
moveAll(a, b);
assert(a == b);
}
--
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