Jarrett Billingsley wrote:
So my suspicion is correct, then?  That is:

scope int delegate() b;
b = { ... };

Will allocate on the heap?

Yes. The scope for delegates takes effect as a parameter storage class, not a local variable storage class. The reason is because it is the called function that decides what it's going to do with the delegate.

Reply via email to