for example, windows will raise a exception_stack_overflow seh exception, which can be handled.
Though--I think it's a bad idea to implement anything recursively that could even potentially overflow the stack.