Re: Bug in :(un)lockvar

2006-10-10 Thread Bram Moolenaar
Hari Krishna Dara wrote: > I need to create a doubly linked list and since this will cause problem > with lockvar, I will just comment the lock/unlockvar commands. I am > wondering if you have any plans to fix this issue. The lockvar is a > great way to prevent accidental changes (and it already

Re: Bug in :(un)lockvar

2006-10-09 Thread Hari Krishna Dara
Bram, I need to create a doubly linked list and since this will cause problem with lockvar, I will just comment the lock/unlockvar commands. I am wondering if you have any plans to fix this issue. The lockvar is a great way to prevent accidental changes (and it already helped me once) so I would

Re: Bug in :(un)lockvar

2006-10-07 Thread Hari Krishna Dara
On Sat, 7 Oct 2006 at 3:32pm, Bram Moolenaar wrote: > > Hari Krishna Dara wrote: > > > The :lockvar and :unlockvar commands fail when there is a recursive > > references. E.g., try the below: > > > > :let a = {} > > :let b = {} > > :let a.b = b > > :let b:a = a > > :lockvar! a > > E743: variable

Re: Bug in :(un)lockvar

2006-10-07 Thread Bram Moolenaar
Hari Krishna Dara wrote: > The :lockvar and :unlockvar commands fail when there is a recursive > references. E.g., try the below: > > :let a = {} > :let b = {} > :let a.b = b > :let b:a = a > :lockvar! a > E743: variable nested too deep for (un)lock > > You could of course end up with more comp

Bug in :(un)lockvar

2006-10-06 Thread Hari Krishna Dara
The :lockvar and :unlockvar commands fail when there is a recursive references. E.g., try the below: :let a = {} :let b = {} :let a.b = b :let b:a = a :lockvar! a E743: variable nested too deep for (un)lock You could of course end up with more complicated indirect recursive references as well, s