Rdoc for obj.object_id
Documentation for return type of obj.object_id is wrong on Windows x64.
Here is a patch:
diff --git a/gc.c b/gc.c.new
index d52208d..2a0f26a 100644
@@ -1670,8 +1670,8 @@ id2ref(VALUE obj, VALUE objid)
- Document-method: object_id *
- * obj.id -> fixnum
- * obj.object_id -> fixnum
- * obj.id -> integer
- * obj.object_id -> integer *
- Returns an integer identifier for obj. The same number will
- be returned on all calls to id for a given object, and
Updated by luislavena (Luis Lavena) almost 8 years ago
zzak (Zachary Scott) wrote:
Luis, can you confirm this on windows?
I don't think the Windows part is relevant but the documentation mistake.
You can confirm this here:
It says "Returns an integer identifier for obj" but then it says fixnum.
I've assigned to Eric Hodel to confirm is a bug in the documentation (or not) and act accordingly.
Updated by zzak (Zachary Scott) almost 8 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r37987.
Heesob, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- gc.c: Documentation for GC, GC::Profiler, ObjectSpace, and ObjectSpace::WeakMap [ruby-core:50245] [Bug #7449]