Thursday, April 29, 2010

RE: Error when calling a user defined function.

yixiaodafang wrote:
> When I call it using:
>
> debug call g:test(llan,vvm)
>
> After I type s for single step, I got
>
> E121: Undefined variable: llan
> E116: Invalid arguments for function g:test

In something like 'call test(hello)' the 'hello' is an
expression that is evaluated, so 'hello' would have to be a
defined variable; you could display the value with:

:echo hello

John

--
You received this message from the "vim_use" 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

No comments:

Post a Comment