On 2 November 2014, Bram Moolenaar <[email protected]> wrote:
>
> Yasuhiro Matsumoto wrote:
>
> > Updated patch.
> >
> > In testdir/test_eval_func.vim
> > -------------
> > func! s:Testje()
> > return "foo"
> > endfunc
> > let Bar = function('s:Testje')
> > $put ='func Bar exists: ' . exists('*Bar')
> > -------------
> >
> > This should be: "func Bar exists: 0"
> >
> > https://gist.github.com/mattn/6e69a3a76fb14a6a286b
>
> Does this actually have to change? If I execute those lines (using a
> script file) and then do:
>
> :echo Bar()
>
> It works. I think if a script intentionally exports a script-local
> function, it's fine that it works.
Yes, and there are plugins relying on the current behaviour.
/lcd
--
--
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.