Just another update

This commit is contained in:
Ingy döt Net 2015-02-20 00:35:01 -05:00
parent a25938f123
commit 00a190b0a6
6591 changed files with 94363 additions and 23227 deletions

View file

@ -1,9 +1,9 @@
import std.stdio, std.conv, std.datetime, core.thread;
import std.stdio, std.conv, std.datetime, std.array, core.thread;
final class SleepSorter: Thread {
private immutable uint val;
this(in uint n) /*pure nothrow*/ {
this(in uint n) /*pure nothrow @safe*/ {
super(&run);
val = n;
}
@ -15,7 +15,7 @@ final class SleepSorter: Thread {
}
void main(in string[] args) {
if (args.length > 1)
foreach (arg; args[1 .. $])
if (!args.empty)
foreach (const arg; args[1 .. $])
new SleepSorter(arg.to!uint).start;
}