On 9/16/07, Bram Moolenaar <[EMAIL PROTECTED]> wrote:

> Nikolai Weibull wrote:

[Request to allow referencing namespace#variable inside functions
without g: prefix]

> I don't see a good reason to make an exception.  Requiring the use of g:
> or s: makes it consistent.  Otherwise there would be a list of
> situations when you don't need to add g: before a variable name.

Which would be a good thing, as the whole variable prefixing is one big crutch.

Ranting aside, the prefix of number above is now#.  I mean, have I
gone to the trouble to declare what "namespace" the variable is in,
shouldn't that be enough?  And

  let s:bug#number = 1

results in a

E461: Illegal variable name: s:bug#number

anyway, so there's no conflict in what you mean when you say bug#number.

  nikolai

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui