键入c
确实会退出当前浏览器上下文。
但是,您的代码在执行期间会执行一个“第一级”和 10 个不同的“第二级”浏览器调用。结果,当您退出一个二级浏览器时,您几乎立即被扔到下一个浏览器中,因此看起来打字c
不起作用。
键入c <RETURN>
11 次以确认这是正在发生的事情。
> FUN()
Called from: FUN()
Browse[1]> c
Called from: FUN(1:10[[1L]], ...)
Browse[1]> c
Called from: FUN(1:10[[2L]], ...)
Browse[1]> c
Called from: FUN(1:10[[3L]], ...)
Browse[1]> c
Called from: FUN(1:10[[4L]], ...)
Browse[1]> c
Called from: FUN(1:10[[5L]], ...)
Browse[1]> c
Called from: FUN(1:10[[6L]], ...)
Browse[1]> c
Called from: FUN(1:10[[7L]], ...)
Browse[1]> c
Called from: FUN(1:10[[8L]], ...)
Browse[1]> c
Called from: FUN(1:10[[9L]], ...)
Browse[1]> c
Called from: FUN(1:10[[10L]], ...)
Browse[1]> c