delegates & GC allocations

Chris Nicholson-Sauls via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 20 13:48:36 PDT 2014


On Wednesday, 20 August 2014 at 15:17:52 UTC, Ola Fosheim Gr 
wrote:
>> non-static nested functions are effectively delegates as it 
>> needs a context pointer to parent stack frame.
>
> Only if it is recursive.

Or if it refers to any state of the parent function.


More information about the Digitalmars-d-learn mailing list