[Issue 11475] std.algorithm.multiSort.release or similar
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 10 22:33:53 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=11475
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |greensunny12 at gmail.com
--- Comment #1 from Seb <greensunny12 at gmail.com> ---
This works since 2.072:
Up to 2.071.2: Failure with output: onlineapp.d(12): Error: no property
'release' for type 'void'
Since 2.072.2: Success with output: [Point(0, 0), Point(0, 1), Point(0,
2), Point(5, 5)]
---
import std.algorithm, std.stdio;
void main()
{
static struct Point
{
int x, y;
}
auto pts1 = [Point(0, 0), Point(5, 5), Point(0, 1), Point(0, 2)];
multiSort!("a.x < b.x", "a.y < b.y",
SwapStrategy.unstable)(pts1).release.writeln;
}
---
https://run.dlang.io/is/MQrUn1
--
More information about the Digitalmars-d-bugs
mailing list