Hi,

2016/7/29 Fri 20:29:33 UTC+9 Ken Takata wrote:
> > > > Sorry, that was confusing. I rearranged the patches:
> > > > 
> > > > 1. Lambda with capture-by-value:
> > > >    
> > > > https://bitbucket.org/k_takata/vim-ktakata-mq/src/9a62b8ce9304e1c0f78c70d524c1d8d8a8015cc7/lambda-capture_by_value.patch?at=default
> > > > 
> > > > 2. Lambda with capture-by-reference:
> > > >    
> > > > https://bitbucket.org/k_takata/vim-ktakata-mq/src/9a62b8ce9304e1c0f78c70d524c1d8d8a8015cc7/lambda-capture_by_reference.patch?at=default
> > > > 
> > > > 3. Closure with normal functions:
> > > >    
> > > > https://bitbucket.org/k_takata/vim-ktakata-mq/src/9a62b8ce9304e1c0f78c70d524c1d8d8a8015cc7/closure.patch?at=default
> > > > 
> > > > #1 and #2 are exclusive. We need to decide which one will be included, 
> > > > but
> > > > now I think #1 has no merits.
> > > > #3 needs to be applied on top of #2.
> > > 
> > > The patches #2 and #3 are updated:
> > > 
> > > 2. Lambda with capture-by-reference:
> > >    
> > > https://bitbucket.org/k_takata/vim-ktakata-mq/src/d6b0edc0785baa51bead7f00271fb7bec484f69e/lambda-capture_by_reference.patch?at=default
> > > 
> > > 3. Closure with normal functions:
> > >    
> > > https://bitbucket.org/k_takata/vim-ktakata-mq/src/d6b0edc0785baa51bead7f00271fb7bec484f69e/closure.patch?at=default
> > > 
> > > Fixed memory leaks and double free problems.
> > > Now all tests pass.
> > 
> > Thanks.  I'll have a look and when it looks good I'll include it.
> 
> The patch #2 is slightly updated. Some old codes and comments were remained.
> #3 is the same as before.
> 
> 2. Lambda with capture-by-reference:
>    
> https://bitbucket.org/k_takata/vim-ktakata-mq/src/ffee5ce8c564f71ddbd3b8b6abd8814583472f94/lambda-capture_by_reference.patch?at=default
> 
> 3. Closure with normal functions:
>    
> https://bitbucket.org/k_takata/vim-ktakata-mq/src/d6b0edc0785baa51bead7f00271fb7bec484f69e/closure.patch?at=default

An additional patch for #3 is here:

4. Support unlet in closure:
   
https://bitbucket.org/k_takata/vim-ktakata-mq/src/6fd892383533a9a4499665188b413dc10fb86657/closure-unlet.patch?at=default

This enables unletting outer scope variables from a closure.  I'm not sure
how this is useful.  BTW, now all the features in mattn's lambda patch are
ported on top of the latest code base.


Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui