[Issue 13615] stable sort not usable in @safe code
https://issues.dlang.org/show_bug.cgi?id=13615 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #4 from Walter Bright --- This is working in the latest master. --
[Issue 13615] stable sort not usable in @safe code
https://issues.dlang.org/show_bug.cgi?id=13615 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh ||ow_bug.cgi?id=16139 --
[Issue 13615] stable sort not usable in @safe code
https://issues.dlang.org/show_bug.cgi?id=13615 Walter Bright changed: What|Removed |Added Depends on||16139 --- Comment #3 from Walter Bright --- This will also require https://issues.dlang.org/show_bug.cgi?id=16139 to be fixed first. --
[Issue 13615] stable sort not usable in @safe code
https://issues.dlang.org/show_bug.cgi?id=13615 --- Comment #2 from Walter Bright --- Better test case: @safe void foo() { import std.algorithm; // Showcase stable sorting string[] words = [ "aBc", "a", "abc", "b", "ABC", "c" ]; sort!("toUpper(a) < toUpper(b)", SwapStrategy.stable)(words); assert(words == [ "a", "aBc", "abc", "ABC", "b", "c" ]); } --
[Issue 13615] stable sort not usable in @safe code
https://issues.dlang.org/show_bug.cgi?id=13615 --- Comment #1 from Walter Bright --- This sort() calls TimSortImpl.sort(). It is @system because it calls uninitializedArray(), which is an @system function. --
[Issue 13615] stable sort not usable in @safe code
https://issues.dlang.org/show_bug.cgi?id=13615 Walter Bright changed: What|Removed |Added Keywords||safe CC||bugzi...@digitalmars.com --