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 | c0bfeaffdf6c2ae0c78f53b2d061445d60bb8a58 (patch) | |
| tree | 727df267f15fc610346666b6c1723b9e12bad330 | |
| parent | ab8d0ca8a1b8ac7213d83bb7b58109fbcc593a1c (diff) | |
| download | ruby-c0bfeaffdf6c2ae0c78f53b2d061445d60bb8a58.tar.gz ruby-c0bfeaffdf6c2ae0c78f53b2d061445d60bb8a58.tar.xz ruby-c0bfeaffdf6c2ae0c78f53b2d061445d60bb8a58.zip | |
* eval.c (rb_obj_instance_eval): should no singleton classes for
true, false, and nil. [ruby-dev:28186]
git-svn-id: http://svn.ruby-lang.org/repos/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 { |
