On 10/25/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote:
Here is a patch that adds set() function on the lines of existing get() for setting list elements by index or dict keys by name. The reason I wanted this is the lack of support to use :let for modifying the dictionary elements. E.g., the below will be an error: :let get_dict().key = 'val' The alternative is to use the new set() function as: :call set(get_dict(), 'key', 'val')
Wouldn't it be better to allow the :let syntax you describe above? It shouldn't be impossible to parse that kind of expression. nikolai
