Hi,

2016/7/30 Sat 5:15:38 UTC+9 Bram Moolenaar wrote:
> Patch 7.4.2119
> Problem:    Closures are not supported.
> Solution:   Capture variables in lambdas from the outer scope. (Yasuhiro
>             Matsumoto, Ken Takata)
> Files:      runtime/doc/eval.txt, src/eval.c, src/ex_cmds2.c, src/globals.h,
>             src/proto/eval.pro, src/proto/userfunc.pro,
>             src/testdir/test_lambda.vim, src/userfunc.c

The following comment in get_lambda_tv() is old:

> +     /* Set up dictionaries for checking local variables and arguments. */
> +     if (evaluate)
> +     eval_lavars_used = &eval_lavars;

It was a comment for the capture-by-value patch.

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