This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csvRange; | |
import std.stdio; | |
void main() { | |
} | |
unittest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module main; | |
import core.thread; | |
import std.algorithm; | |
import std.conv; | |
import std.datetime; | |
import std.parallelism; | |
import std.random; | |
import std.range; | |
import std.stdio; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Original Go: http://www.mprescient.com/journal/2011/1/9/concurrency-in-go-a-call-center-tutorial.html | |
*/ | |
module main; | |
import core.thread, | |
std.array, | |
std.concurrency, | |
std.conv, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This code comes from a D newsgroup discussion by Max Samukha | |
* and Simen kjaeraas: http://thread.gmane.org/gmane.comp.lang.d.general/43408/focus=43476 | |
* | |
* The intent is to provide a safe way to mutate some data in a const method. | |
* | |
* The rules to achieve this are: | |
* * Only mutable data can be assigned to a Mutable | |
* * Referenced fields can be modified (inner class fields, pointer target) | |
* * Value types can be modified if the encapsulating class |
NewerOlder