From: SASADA Koichi Date: 2017-03-02T12:01:55+09:00 Subject: [ruby-core:79852] Re: [Ruby trunk Feature#12901] Anonymous functions without scope lookup overhead On 2017/03/01 5:47, eregontp@gmail.com wrote: > It is possible with deoptimization though. > An optimizer might assume that a block does not call binding and in case it does, deoptimize. I haven't read discussion details, but some optimizations eliminate frames (local variables) and deoptimization can not recover eliminated variables. I don't think most of people needs such strict compatibility, but I don't think "possible" is not exact. My rough idea is forcing calling "binding" to people who want to use local variables outside from this block. It breaks compatibility and "binding" will be a magical sentence (like pragma, not Ruby-like way). But not so bad. -- // SASADA Koichi at atdot dot net Unsubscribe: