Re: Don't use function!

2018-12-08 Fir de Conversatie Bram Moolenaar
Andy Wokula wrote: > Am 08.12.2018 um 16:03 schrieb Bram Moolenaar: > > Yasuhiro Matsumoto wrote: > > > >> On Saturday, December 8, 2018 at 10:53:07 PM UTC+9, Bram Moolenaar > >> wrote: > >>> I have recently changed the behavior of :function to allow for > >>> redefining (overwriting) a function

Re: Don't use function!

2018-12-08 Fir de Conversatie 'Andy Wokula' via vim_dev
Am 08.12.2018 um 16:03 schrieb Bram Moolenaar: Yasuhiro Matsumoto wrote: On Saturday, December 8, 2018 at 10:53:07 PM UTC+9, Bram Moolenaar wrote: I have recently changed the behavior of :function to allow for redefining (overwriting) a function when that should normally be fine. Therefore, us

Re: Don't use function!

2018-12-08 Fir de Conversatie Bram Moolenaar
Yasuhiro Matsumoto wrote: > On Saturday, December 8, 2018 at 10:53:07 PM UTC+9, Bram Moolenaar wrote: > > 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

Re: Don't use function!

2018-12-08 Fir de Conversatie mattn
On Saturday, December 8, 2018 at 10:53:07 PM UTC+9, Bram Moolenaar wrote: > 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. > > Previously, when sourcing a sc

Re: Don't use function!

2018-12-08 Fir de Conversatie Luc Hermitte
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

Don't use function!

2018-12-08 Fir de Conversatie Bram Moolenaar
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. Previously, when sourcing a script a second time, one had to use function! to redefine the functions. This was