From 01995df6453de45ba0d99835e26799260517657c Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Mon, 22 Jul 2019 15:07:22 -0700 Subject: [PATCH] Document BasicObject does not implement #object_id and #send [ci skip] Fixes [Bug #10422] --- gc.c | 2 ++ vm_eval.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gc.c b/gc.c index feea9852ec..d61db0448a 100644 --- a/gc.c +++ b/gc.c @@ -3489,6 +3489,8 @@ rb_memory_id(VALUE obj) * Note: that some objects of builtin classes are reused for optimization. * This is the case for immediate values and frozen string literals. * + * BasicObject implements +__id__+, Kernel implements +object_id+. + * * Immediate values are not passed by reference but are passed by value: * +nil+, +true+, +false+, Fixnums, Symbols, and some Floats. * diff --git a/vm_eval.c b/vm_eval.c index 068944d0b5..9281ebd40e 100644 --- a/vm_eval.c +++ b/vm_eval.c @@ -951,6 +951,8 @@ send_internal(int argc, const VALUE *argv, VALUE recv, call_type scope) * When the method is identified by a string, the string is converted * to a symbol. * + * BasicObject implements +__send__+, Kernel implements +send+. + * * class Klass * def hello(*args) * "Hello " + args.join(' ')