зеркало из https://github.com/github/ruby.git
Add note about rb_f_notimplement [ci skip]
Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
This commit is contained in:
Родитель
9683eb06cf
Коммит
518d5ab5c8
|
@ -4898,7 +4898,7 @@ fn jit_obj_respond_to(
|
||||||
// Method exists and has acceptable visibility
|
// Method exists and has acceptable visibility
|
||||||
if cme_def_type == VM_METHOD_TYPE_NOTIMPLEMENTED {
|
if cme_def_type == VM_METHOD_TYPE_NOTIMPLEMENTED {
|
||||||
// C method with rb_f_notimplement(). `respond_to?` returns false
|
// C method with rb_f_notimplement(). `respond_to?` returns false
|
||||||
// without consulting `respond_to_missing?`.
|
// without consulting `respond_to_missing?`. See also: rb_add_method_cfunc()
|
||||||
Qfalse
|
Qfalse
|
||||||
} else {
|
} else {
|
||||||
Qtrue
|
Qtrue
|
||||||
|
|
Загрузка…
Ссылка в новой задаче