Re: [vim/vim] No closures for the for loop [var1, var2] variables? (Issue #11094)

2022-09-21 Fir de Conversatie Bram Moolenaar
> Right, it miscomputes the location of the second loop variable and > assumes it's declared inside the block. Fixed with patch 9.0.0535 -- "Microsoft is like Coke. It's a secret formula, all the money is from distribution, and their goal is to get Coke everywhere. Open source is like

Re: [vim/vim] No closures for the for loop [var1, var2] variables? (Issue #11094)

2022-09-12 Fir de Conversatie Doug Kearns
On Mon, 12 Sept 2022 at 05:14, Bram Moolenaar wrote: > Let's try to summarize: This sounds good to me. Thanks, Doug -- -- 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

Re: [vim/vim] No closures for the for loop [var1, var2] variables? (Issue #11094)

2022-09-11 Fir de Conversatie Bram Moolenaar
Let's try to summarize: 1. The loop variable in a Vim9 script and a compiled function behave differently, we expect them to work the same way. In a script the variable can't be found after the loop, it has been deleted. In a compiled function it can be used by a closure executed