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.

-- 
    [clop clop]
ARTHUR:  Old woman!
DENNIS:  Man!
ARTHUR:  Man, sorry.  What knight lives in that castle over there?
DENNIS:  I'm thirty seven.
ARTHUR:  What?
DENNIS:  I'm thirty seven -- I'm not old!
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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