On Sep 18, 9:43 pm, ZyX <[email protected]> wrote: > In reply to ``Re: Using :let to view a wildcard of variables'' > sent 18 September 2011, Sunday by Spiros Bousbouras > > > Why are you using a dictionary ? Why not simply write > > ... > > 1. let val=function('tr') > 2. let val=0 > let val=[] > 3. function Val() > endfunction > let Val=function('tr') > There is no way to safely handle function references without putting it into a > dictionary.
Wouldn't a list also work ? I tried :let d = [0] and then doing :let d[0] = ... with all the assignments above worked fine. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
