std.concurrency and module constructors

2012-05-11 Thread japplegame
OS: Windows 7 64bit Compiler: DMD32 D Compiler v2.059 Using spawn in module constructor causes very strange behavior. import std.concurrency; import std.stdio; void main() { } void worker() { receiveOnly!OwnerTerminated; } static this() { writeln(module constructor); spawn(worker); }

Re: std.concurrency and module constructors

2012-05-11 Thread Steven Schveighoffer
On Fri, 11 May 2012 07:34:46 -0400, japplegame jappleg...@gmail.com wrote: OS: Windows 7 64bit Compiler: DMD32 D Compiler v2.059 Using spawn in module constructor causes very strange behavior. import std.concurrency; import std.stdio; void main() { } void worker() {

Re: std.concurrency and module constructors

2012-05-11 Thread japplegame
Oh, I'm sorry. My mistake.