shared array?
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 12 15:41:46 PDT 2015
On Saturday, 12 September 2015 at 22:36:00 UTC, Laeeth Isharc
wrote:
> Thank you for this. How large is the allocation for closure
> for a delegate? Just a pair of pointers?
It depends on what the delegate needs to capture. It makes a copy
of the local variables the function is referencing. (Usually
pretty small I'd gamble; how big are your typical function's
arguments and local vars?)
More information about the Digitalmars-d-learn
mailing list