Hari Krishna Dara wrote:

> On Sun, 15 Oct 2006 at 3:10pm, Bram Moolenaar wrote:
> 
> >
> > Patch 7.0.134
> > Problem:    Crash when comparing a recursively looped List or Dictionary.
> > Solution:   Limit recursiveness for comparing to 1000.
> > Files:          src/eval.c
> 
> Does this handle the cases when the exact same objects are involved in
> the references? All such cases will result in inf. recursion, as there
> is no logic to break the references, like it is possible in case of
> functions. If not, is it going to be in another patch?

Yes, I have another patch in the pipeline to have comparing a list or
dictionary with itself return TRUE quickly.

Also, I was thinking of returning TRUE instead of FALSE when running
into the recursiveness limit.  If everything compares equal so far, then
it's probably equal.

There should be an error message, but I'm afraid you might get thousands
of them...

-- 
hundred-and-one symptoms of being an internet addict:
40. You tell the cab driver you live at
    http://123.elm.street/house/bluetrim.html
41. You actually try that 123.elm.street address.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to