diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-20 07:11:44 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-20 07:11:44 +0000 |
commit | 67688bf178e1fc64ff5af1b07ce834ffb3a84a38 (patch) | |
tree | d84ee3ea9c21646d38e396bb875c4bcc591a81f4 /class.c | |
parent | d874c0dff914c7d057c86657a9961b9cc68bf5fa (diff) | |
download | ruby-67688bf178e1fc64ff5af1b07ce834ffb3a84a38.tar.gz ruby-67688bf178e1fc64ff5af1b07ce834ffb3a84a38.tar.xz ruby-67688bf178e1fc64ff5af1b07ce834ffb3a84a38.zip |
* parse.y (new_yield): distinguish "yield 1,2" and "yield [1,2]".
[ruby-dev:20360]
* eval.c (rb_eval): support new_yield() change.
* variable.c (rb_const_get_0): warn for Foo::BAR when BAR is a
toplevel constant (i.e. a constant defined under Object).
[ruby-list:36935]
* parse.y (no_blockarg): separate no block argument check and
ret_args argument processing.
* range.c (rb_range_beg_len): out_of_range check after adjusting
end point. [ruby-dev:20370]
* parse.y (call_args): the first argument to arg_cancat() should
be NODE_LIST. [ruby-core:01151]
* eval.c (rb_eval): should dispatch based on ID type.
* eval.c (rb_yield_0): should restore scope_vmode during yield.
[ruby-dev:20361]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r-- | class.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -229,7 +229,7 @@ rb_define_class_under(outer, name, super) id = rb_intern(name); if (rb_const_defined_at(outer, id)) { - klass = rb_const_get(outer, id); + klass = rb_const_get_at(outer, id); if (TYPE(klass) != T_CLASS) { rb_raise(rb_eTypeError, "%s is not a class", name); } @@ -306,7 +306,7 @@ rb_define_module_under(outer, name) id = rb_intern(name); if (rb_const_defined_at(outer, id)) { - module = rb_const_get(outer, id); + module = rb_const_get_at(outer, id); if (TYPE(module) == T_MODULE) return module; rb_raise(rb_eTypeError, "%s::%s is not a module", |