Friday, January 6, 2017

Re: perl vs python bindings for vim and tab page object access

On 01/06/2017 02:56 PM, BPJ wrote:
> It would be reasonable if vim passed arrays to perl as anonymous references
> and perl had to pass arrays to vim as references. After all passing
> multiple arrays or hashes to subroutines already requires references in
> perl, as does nested data structures.

It appears that the existing window and buffer bindings allow for
returning the total number of them, a list of them, or a specific one
based on a parameter passed into the appropriate method.

While having a nested data structure would be nice for tab pages (list
of windows each of which has an associated buffer), I think we could
still get what we want without nesting. That is, get a flat list of
windows in a given tab page. For each window in the list, get the
buffer it contains, etc.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment