diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-01 09:34:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-01 09:34:30 +0000 |
commit | 6f8f0a86f5964f36ea81b327c1f4538a9ccedbd2 (patch) | |
tree | 446fffdf5a750f00c72f5f44b9612e1f4eadf38b | |
parent | b6feeb2945307a655c1a79b3ee61eafc89a7b09b (diff) | |
download | ruby-6f8f0a86f5964f36ea81b327c1f4538a9ccedbd2.tar.gz |
* eval.c (rb_eval): make tail recursion in ELSE clause of
RESCUE a jump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Mon Sep 1 18:34:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * eval.c (rb_eval): make tail recursion in ELSE clause of + RESCUE a jump. + Mon Sep 1 18:00:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org> * parse.y (aref_args): forgot to call NEW_SPLAT(). reported by @@ -2809,8 +2809,8 @@ rb_eval(self, n) POP_TAG(); if (state) JUMP_TAG(state); /* no exception raised */ - if (node->nd_else) { /* else clause given */ - result = rb_eval(self, node->nd_else); + if (node = node->nd_else) { /* else clause given */ + goto again; } } break; |