diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-15 00:26:14 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-02-15 00:26:14 +0000 |
commit | c3f5a736a878aaf573d40e5c8d1753a7faa77cd3 (patch) | |
tree | 727df267f15fc610346666b6c1723b9e12bad330 | |
parent | d4cecea858137cd4ca07388bf9cd977c45041b87 (diff) |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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 @@ -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 { |