Nikolai Weibull schrieb:
On 4/24/07, Andy Wokula <[EMAIL PROTECTED]> wrote:
Thomas schrieb:
> So maybe one could make vimscript search a variable foo as l:foo,
a:foo,
> (maybe also: w:foo, b:foo), s:foo, g:foo, and then throw an undefined
> variable name error if none exists. Or so.
Don't like the idea.
In Vim script there is no need or possibility to declare variables.
Now, if I forget to init a fun-local variable (happens often to me)
Vim gives me a helpful error ("undefined variable").
And I have the same problem with a: prefixes for my arguments. Fine,
keep prefixes for g:, w:, and b:, but a: is just such an incredibly
nonstandard way of doing things. In almost all languages parameters
are treated the same as local variables.
nikolai
As long as function arguments are read-only, it is good to have
the a: modifier.
In fact, why are they read-only, although call is by value?
--
Regards,
Andy
EOM