Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also get rid of STATE(ErrorLVars0) This is an example for DownEnv/UpEnv usage: gap> f:=lvl -> 1/lvl + f(lvl-1); function( lvl ) ... end gap> f(3); Error, Rational operations: <divisor> must not be zero in return 1 / lvl + f( (lvl - 1) ); called from f( lvl - 1 ) called from f( lvl - 1 ) called from f( lvl - 1 ) called from <function "f">( <arguments> ) called from read-eval loop at line 12 of *stdin* you can replace <divisor> via 'return <divisor>;' brk> lvl; 0 brk> UpEnv(1); lvl; 0 brk> DownEnv(1); lvl; 1 brk> DownEnv(1); lvl; 2 brk> UpEnv(1); lvl; 1 brk> DownEnv(1); lvl; 2 brk> DownEnv(1); lvl; 3 brk> DownEnv(1); lvl; 3 brk> UpEnv(1); lvl; 2 Note that before this commit, the very last UpEnv(1) incorrectly returned us to level 0.
- Loading branch information