The future of lambda delegates
Walter Bright
newshound at digitalmars.com
Wed Aug 16 19:26:59 PDT 2006
kris wrote:
>> Static escape analysis can yield 3 results:
>>
>> 1) guaranteed to not escape
>> 2) might escape
>> 3) does escape
>>
>> If most of the (1) cases in actual use can be reliably detected as
>> (1), then a reasonable strategy is to do so and allocate on the stack
>> only those proven as (1).
>
> Aye, but doesn't that imply a heap-frame when passing a delegate to
> another function, when you explicitly know all callbacks will be
> synchronous only?
If the source to that function is not known to the compiler, then yes.
More information about the Digitalmars-d
mailing list