Joe Duffy on concurrency
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Thu Dec 1 11:15:36 PST 2016
On Thursday, 1 December 2016 at 19:14:51 UTC, Dicebot wrote:
> On Thursday, 1 December 2016 at 18:56:36 UTC, qznc wrote:
>> That is an interesting idea. Afaik, D does not allow to limit
>> closure like this?
>
> void i_only_accept_immutable_context (void delegate ()
> immutable closure);
NB: it may have ton of bugs though, because delegate context
suffers from type erasure in runtime
More information about the Digitalmars-d
mailing list