On Dec 3, 2013 10:07 AM, "Marc Weber" <[email protected]> wrote: > > Excerpts from Nikolay Pavlov's message of Mon Dec 02 20:35:18 +0100 2013: > > Note: this means that if there is reference somewhere when you redefine > > function that reference will still use old definition. I consider such > > stability an advantage. > I always assumed that > - restarting Vim is that fast that I do not bother about such changes at > runtime. Instead I do care about "setting up my dev env" faster, eg by > using local vimrcs, spending more time on workflows to define the > compiler (vim-addon-actions) and the like.
I normally trade startup time for other conveniences. As I am using anonymous funcrefs in my plugin this problem does not bother me, but it is what I expect function reference to do in other languages. > > > Note that there is also no way I know that allows to do this and keep > > context (i.e. l: and a: locals or absence of them for use with vim.*eval). > > This is poind d). > No, there is not. You have to pass context as arguments manually. > I didn't try my code. Fact is I'm using it in many ways. > If you're interested you can find the implementation easily. It is impossible to pass context and use vim.*eval() like if it was regular pyeval(). I.e. you cannot construct drop-in replacement for pyeval() from my branch which makes the code harder to use. > > But anyway: Your work makes me think that having a separate viml library > is the way to go, so that improvements can be created and debugged more > easily. Do not know. Next set of changes to python interface is going to mostly interface things outside of eval.c, the same ones that eval.c interfaces. I have to solve the problem with crashing compatibility library for older vims first though: I have written most of it, but cannot even start testing. > > Marc Weber > > -- > -- > 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 [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
