diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-04 17:05:59 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-04 17:05:59 +0000 |
commit | 5b3c80abe258de5b889f5238fd2d2430c80281ff (patch) | |
tree | c60c9737334caa7bd635a073b790563cabb679b8 /method.h | |
parent | 1895a5070488039d528b6b3fe5b4ceb8b8de9940 (diff) | |
download | ruby-5b3c80abe258de5b889f5238fd2d2430c80281ff.tar.gz ruby-5b3c80abe258de5b889f5238fd2d2430c80281ff.tar.xz ruby-5b3c80abe258de5b889f5238fd2d2430c80281ff.zip |
* vm_method.c (basic_obj_respond_to): should not call
#respond_to_missing? for not implemented methods.
[ruby-core:25909]
* vm_method.c (rb_method_boundp): returns exceptional value 2 for
not-implemented methods when called from #respond_to? (specifies
by new contant NOEX_RESPONDS).
* method.h (enum): new constant NOEX_RESPONDS added.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'method.h')
-rw-r--r-- | method.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -21,7 +21,8 @@ typedef enum { NOEX_UNDEF = NOEX_NOSUPER, NOEX_MODFUNC = 0x12, NOEX_SUPER = 0x20, - NOEX_VCALL = 0x40 + NOEX_VCALL = 0x40, + NOEX_RESPONDS = 0x80 } rb_method_flag_t; #define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F) |