Re: Bug in autoload handling?

2007-09-18 Fir de Conversatie ap
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

Re: Bug in autoload handling?

2007-09-18 Fir de Conversatie Tony Mechelynck
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

Re: Bug in autoload handling?

2007-09-17 Fir de Conversatie Nikolai Weibull
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

Re: Bug in autoload handling?

2007-09-17 Fir de Conversatie Nikolai Weibull
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

Re: Bug in autoload handling?

2007-09-17 Fir de Conversatie Tony Mechelynck
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

Re: Bug in autoload handling?

2007-09-17 Fir de Conversatie Nikolai Weibull
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, ...

Bug in autoload handling?

2007-09-16 Fir de Conversatie Nikolai Weibull
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

Re: Bug in autoload handling?

2007-09-16 Fir de Conversatie Nikolai Weibull
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

Re: Bug in autoload handling?

2007-09-16 Fir de Conversatie Bram Moolenaar
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