diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-28 15:58:32 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-28 15:58:32 +0000 |
| commit | cf51572bea16c7ec319c1dfb5a1f010530a2af9d (patch) | |
| tree | c4894c535090f0b7f9575a99ff1fc5709ad30f0b /eval.c | |
| parent | 7abb79bf38cf0b0bcef28f9a9061d46a12448094 (diff) | |
| download | ruby-cf51572bea16c7ec319c1dfb5a1f010530a2af9d.tar.gz ruby-cf51572bea16c7ec319c1dfb5a1f010530a2af9d.tar.xz ruby-cf51572bea16c7ec319c1dfb5a1f010530a2af9d.zip | |
* eval.c (ev_const_get), variable.c (rb_const_get_0): retry only when
autoload succeeded.
* variable.c (rb_autoload_load): now return true if autoload
succeeded. fixed: [ruby-dev:27331]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1837,7 +1837,7 @@ ev_const_get(cref, id, self) if (NIL_P(klass)) return rb_const_get(CLASS_OF(self), id); while (RCLASS(klass)->iv_tbl && st_lookup(RCLASS(klass)->iv_tbl, id, &result)) { if (result == Qundef) { - rb_autoload_load(klass, id); + if (!RTEST(rb_autoload_load(klass, id))) break; continue; } return result; |
