Hi,
On Wed, Dec 8, 2021 at 7:13 PM Yegappan Lakshmanan <[email protected]> wrote:
>
> If you run the below script:
>
> --------------------------------------------
> vim9script
> def g:Test1(): void
> enddef
> echomsg function('g:Test1')
> echomsg funcref('g:Test1')
> --------------------------------------------
>
> The following output is produced:
>
> function('g:Test1')
> function('Test1')
>
> Note that in the second line the scope "g:" is missing. I expected that the
> same output will be produced by both function() and funcref().
>
I see the same problem with legacy scripts also. So this is not related to Vim9.
---------------------------------------------------------------------
func g:Test1()
endfunc
echomsg function('g:Test1')
echomsg funcref('g:Test1')
---------------------------------------------------------------------
- Yegappan
--
--
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/CAAW7x7mhPq6GYe9r%3DG7dWFVqonuJGZ1vDxfvoxc9GwvZQvT14Q%40mail.gmail.com.