On Mon, Dec 15, 2008 at 4:49 PM, Matt Wozniski wrote:
> On Mon, Dec 15, 2008 at 2:42 PM, Dominique Pelle wrote:
>>
>> Matt Wozniski wrote:
>>
>>> function! ReturnArgs(...)
>>>  return a:000
>>> endfunction
>>>
>>> function! MakeArgsDict(...)
>>>  return { 'args': a:000 }
>>> endfunction
>>
>> I can reproduce that with vim-7.2.69 on Linux.
>>
>> Following patch seems to fix it, but I'm not sure whether
>> that's the correct fix or whether it's only a workaround:
>
> That's slightly better, since it no longer seems to crash, but it's
> still wrong.  With that patch applied, combining those two functions -
> eg,
>
> :echo MakeArgsDict(ReturnArgs(1, 2, 3))
>
> gives the completely nonsensical result
>
> {'args': [[...]]}
>
> when the correct result should be
>
> {'args': [1, 2, 3]}
>
> Still haven't looked at the source, though, so I can't suggest a
> better patch yet.

Better still,

:echo string(MakeArgsDict(ReturnArgs(1, 2, 3)))

gives

E724: variable nested too deep for displaying
{'args': }

~Matt

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

Raspunde prin e-mail lui