> It would help very much to get at least a list of function arguments?

The methods are usually stored as function references like {"name":
function("12") ...}

I include the following method in objects:

function! s:prototype.Methods(...) dict "{{{3
    TVarArg ['pattern', '\d\+']
    let o = items(self)
    call filter(o, 'type(v:val[1]) == 2 && string(v:val[1]) =~
"^function(''\\d\\+'')"')
    let acc = {}
    for e in o
        let id = matchstr(string(e[1]), pattern)
        if !empty(id)
            let acc[id] = e[0]
        endif
    endfor
    return acc
endf

This will return a dictionary with the numbers as keys and the method
names as values.

You could turn this into an function externally iterating over the
dictionary of course.

let o = {'Foo': function('12')}
Methods(o)[12]
=> Foo

Or that's the idea.

I'd also appreciate it if the trace included information about the
function name though.

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

Reply via email to