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

Re: calling dict function without dict?

Expand Messages
  • Agathoklis D. Hatzimanikas
    ... or, call call(a[ foo ], [], a) Regards, Ag. --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_dev maillist.
    Message 1 of 5 , Dec 2, 2008
    • 0 Attachment
      On Mon, Dec 01, at 03:54 Larson, DavidX S wrote:
      > > Eg why should this fail?
      > >
      > > let a = {}
      > > function! a.foo() dict
      > > echo "foo"
      > > endfunction
      > >
      > > call call(a['foo'],[])
      >
      > Try this instead:
      >
      > call a.foo()
      >

      or,

      call call(a['foo'], [], a)

      Regards,
      Ag.

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_dev" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.