зеркало из https://github.com/github/ruby.git
* eval.c (rb_obj_instance_eval): should no singleton classes for
true, false, and nil. [ruby-dev:28186] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d4cecea858
Коммит
c3f5a736a8
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 15 09:20:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_obj_instance_eval): should no singleton classes for
|
||||
true, false, and nil. [ruby-dev:28186]
|
||||
|
||||
Tue Feb 14 20:26:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* enumerator.c (enumerator_each): return self if no block is
|
||||
|
|
2
eval.c
2
eval.c
|
@ -6546,7 +6546,7 @@ rb_obj_instance_eval(int argc, VALUE *argv, VALUE self)
|
|||
{
|
||||
VALUE klass;
|
||||
|
||||
if (FIXNUM_P(self) || SYMBOL_P(self)) {
|
||||
if (SPECIAL_CONST_P(self)) {
|
||||
klass = Qnil;
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче