> They do, because s:GetRelVer() is called inside of
> s:SpecChangelog() function so they are local to that function.
No. They are local to s:GetRelVer. Only.
It is not python, there are no closures. Function cannot access variables from
the other function unless they are explicitly passed.
> Notice, that I have been using this modification for almost
> a year, so I happily accept any reasonable corrections, but trust
> me, at least the basic functionality really works.
No. Try the following code:
function! A()
let a=1
call B()
echo a
endfunction
function! B()
py << EOF
vim.command('let a=2')
EOF
endfunction
. It outputs 1 on my system. It must output 1 on yours too. If it does not it
is a bug because second a is local to B() and not to A().
--
--
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/groups/opt_out.