std.concurrency.spawn does not accept delegates
Jonathan M Davis
jmdavisProg at gmx.com
Sun Jul 17 17:29:26 PDT 2011
On Sunday 17 July 2011 19:29:02 teo wrote:
> It looks like std.concurrency.spawn does not accept delegates. Is there
> any reason for that?
Probably because it would have to accept a delegate where every variable that
it had access too outside of its own scope was immutable, and I don't think
that there's any way for the compiler to make such guarantees with a delegate.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list