Loading ...
Sorry, an error occurred while loading the content.
 

RE: Error when calling a user defined function.

Expand Messages
  • John Beckett
    ... In something like call test(hello) the hello is an expression that is evaluated, so hello would have to be a ... John -- You received this message
    Message 1 of 2 , Apr 29, 2010
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.