std.concurrency.spawn does not accept delegates

Steven Schveighoffer schveiguy at yahoo.com
Mon Jul 18 07:26:27 PDT 2011


On Sun, 17 Jul 2011 15:29:02 -0400, teo <teo.ubuntu at yahoo.com> wrote:

> It looks like std.concurrency.spawn does not accept delegates. Is there
> any reason for that?

There is no type attached to the hidden 'this' pointer.  So spawn cannot  
guarantee it doesn't point to unshared data.

-Steve


More information about the Digitalmars-d-learn mailing list