From: ts Date: 2001-06-10T00:39:18+09:00 Subject: [ruby-talk:16363] Re: bug? >>>>> "N" == Neil Conway writes: N> Still, there should be a way to detect that it's doing thousands of N> recursive function calls, and stop it before it dumps core -- right? This is what ruby do :-) if ((++tick & 0xff) == 0) { CHECK_INTS; /* better than nothing */ if (stack_length(0) > STACK_LEVEL_MAX) { rb_raise(rb_eSysStackError, "stack level too deep"); } } Guy Decoux