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
idfor a given object, and
Updated by luislavena (Luis Lavena) over 9 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) over 9 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100