[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: should es have a recursion depth limit?



> Would it be possible to use ``unlimited'' as opposed to 0 so that it is
> consistent with limit?

the limit stuff is already different enough syntactically from the rest
of es that i don't want to necessarily follow its example.

it doesn't really matter to me, much, because a hard-coded 5-digit number
should be as good as unlimited or 0, given the current implementation.

> Also is the variable going to have a %-prefix?  Why?  history etc don't have
> %-prefixes so why should recursion-limit.  I think % should be used for hook
> functions.

you're right.  max-call-depth it is.

also, in answer to a question more people may have but Arnold raised:

> Just catch SIGSEGV and unwind the stack.

can't do it, given es' current implementation.  if the signal comes in
while garbage collection is disabled (which it has to be for some parts
of the process), the state is not recoverable from.

otherwise, trust me, i would have done this.

paul