On Sep 17, 12:30 pm, Tony Mechelynck [EMAIL PROTECTED]
wrote:
- name (with omitted scope) defaults to l:name if in a function, otherwise to
g:name
I don't want to count hairs, but , well I do it anyway :
- name (with omitted scope) defaults to l:name if in a function and
the name does
ap wrote:
On Sep 17, 12:30 pm, Tony Mechelynck [EMAIL PROTECTED]
wrote:
- name (with omitted scope) defaults to l:name if in a function, otherwise to
g:name
I don't want to count hairs, but , well I do it anyway :
- name (with omitted scope) defaults to l:name if in a function
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
On 9/17/07, Tony Mechelynck [EMAIL PROTECTED] wrote:
Nikolai Weibull wrote:
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
Nikolai Weibull wrote:
On 9/17/07, Tony Mechelynck [EMAIL PROTECTED] wrote:
Nikolai Weibull wrote:
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
On 9/17/07, Tony Mechelynck [EMAIL PROTECTED] wrote:
Please cut out parts that aren't relevant to what you're replying to.
Nikolai Weibull wrote:
What is lambda supposed to mean here?
Hm? What is the exact English equivalent? random, average, any, John Q.
Public, typical, ordinary, ...
Create autoload/bug.vim:
let s:cpo_save = cpo
set cpovim
function bug#reproduce()
echo bug#number
endfunction
let bug#number = 1
let s:cpo_save = cpo
set cpovim
Start vim and run
:call bug#reproduce()
which will give you the following output (instead of 1):
Error detected while
On 9/16/07, Nikolai Weibull [EMAIL PROTECTED] wrote:
function bug#reproduce()
echo bug#number
endfunction
let bug#number = 1
:call bug#reproduce()
which will give you the following output (instead of 1):
Error detected while processing function bug#new:
line1:
E121: Undefined
Nikolai Weibull wrote:
On 9/16/07, Nikolai Weibull [EMAIL PROTECTED] wrote:
function bug#reproduce()
echo bug#number
endfunction
let bug#number = 1
:call bug#reproduce()
which will give you the following output (instead of 1):
Error detected while processing function