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

38882Re: New snapshot 7.0046

Expand Messages
  • Bram Moolenaar
    Feb 1, 2005
      Johnny Blaze wrote:

      > > > if I am stepping through the script and before "let s:dirty.menu = 0"
      > > > in CheckState() I execute :unlockvar s:dirty.menu, I get "E742: Cannot
      > > > change value of s:dirty.menu = 0"
      > >
      > > That means a flag is set that is used for function arguments. You can't
      > > reset it with ":unlockvar". Again sounds like missing initialisation.
      >
      > so in nomal practice, if a locked variable is found, unlockvar will be
      > able to unlock it?

      Yes, but ":unlockvar" can't change anything for a read-only variable,
      such as a function argument.

      --
      hundred-and-one symptoms of being an internet addict:
      14. You start introducing yourself as "Jim at I-I-Net dot net dot au"

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
      \\\ Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html ///
    • Show all 5 messages in this topic