On Oct 17, 2012, at 11:29 PM, Joshua Niehus <jm.nie...@gmail.com> wrote:
> Is the following snippet a bug? > > --- > import core.thread; > import std.stdio, std.concurrency; > > void foo(Tid tid) { > send(tid, true); > } > > void main() { > auto fooTid = spawn(&foo, thisTid); > auto receiveInt = receiveTimeout(dur!"seconds"(10), (int isInt) { > writeln("I should not be here"); > }); spawn() shouldn't allow you to spawn a delegate. Last I checked (which was admittedly a while ago), there were some compiler issues around actually verifying the function signature sent to spawn() though.