Mikolaj Machowski wrote: > Dnia niedziela, 15 pa¼dziernika 2006 15:10, Bram Moolenaar napisa³: > > Patch 7.0.134 > > Problem: Crash when comparing a recursively looped List or > > Dictionary. Solution: Limit recursiveness for comparing to 1000. > > Is hardcoding any value like that good thing? > > It could use 'maxfuncdepth' - default value is "only" 100 but user can > always adjust it to his liking.
The limit should actually depend on the stack space. But that's rather complicated. 1000 is actually quite a lot, Vim may still crash for systems with a small stack. deepcopy() and ":lockvar" use a limit of 100. -- Don't read everything you believe. /// 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 ///