Hi,

> I have recently changed the behavior of :function to allow for
> redefining (overwriting) a function when that should normally be
> fine.
> Therefore, using function! is hardly ever needed.
> 
> [...]
> Vim now checks the script ID of where the function was defined, and
> whether that same script is being sourced again.  This allows for
> silently overwriting the function from the same script file, once.
> 
> So, please stop using function!

This is a very nice improvement.
Alas as long as we wish to provide portable plugins we need to stick with old 
practices. Typically, I'm often stuck with the version of vim shipped with 
CentOS/RedHat 7 distributions. As such I cannot always migrate my plugin code 
to use the latest improvements of Vim.

Any way, this is a nice improvement. Thanks for it. I'll definitively use it, 
eventually.

-- 
Luc Hermitte

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui