User defined funcs created with func() currently only allow for passing in of arguments via keyword parameters. Then these keywords arguments create a temporary local scope, perhaps overriding external variables. Fixed arguments (without a keyword) are not supported.
The way to support them would be make the arg() and narg() funcs sensitive to this scope once inside a user-defined func. This would also require adding a :main or :global keyword to these funcs, so that the top-level arguments can still be accessed from within a user-defined func if so desired.
User defined funcs created with func() currently only allow for passing in of arguments via keyword parameters. Then these keywords arguments create a temporary local scope, perhaps overriding external variables. Fixed arguments (without a keyword) are not supported.
The way to support them would be make the arg() and narg() funcs sensitive to this scope once inside a user-defined func. This would also require adding a :main or :global keyword to these funcs, so that the top-level arguments can still be accessed from within a user-defined func if so desired.