From: "Charles E. Thornton" Date: 2005-10-14T14:02:59+09:00 Subject: Wilderness: Converting for Object Address ot Object ID I have written several functions to dump Object Trees. For Example the object tree for rb_cObject is OBJECT ====> Object Address ------>0x00f6fddd20 rb_cObject OBJECT ====> Object Address ------>0x00f6fddd20 CLASS RBASIC ====> flags --------------->0x0000000003 RBASIC ====> klass --------------->0x00f6fddce4 metaclass_object RCLASS ====> iv_tbl -------------->0x000973bba0 RCLASS ====> m_tbl --------------->0x000973bad8 RCLASS ====> super --------------->0x00f6fddc94 OBJECT ====> Object Address ------>0x00f6fddc94 ICLASS RBASIC ====> flags --------------->0x0000000004 RBASIC ====> klass --------------->0x00f6fddca8 RCLASS ====> iv_tbl -------------->0x000973c128 RCLASS ====> m_tbl --------------->0x000973c0e0 RCLASS ====> super --------------->0x0000000000 OBJECT ====> Object Address ------>0x00f6fddca8 MODULE RBASIC ====> flags --------------->0x0000000005 RBASIC ====> klass --------------->0x00f6fdd528 RCLASS ====> iv_tbl -------------->0x000973c128 RCLASS ====> m_tbl --------------->0x000973c0e0 RCLASS ====> super --------------->0x0000000000 OBJECT ====> Object Address ------>0x00f6fdd528 METACLASS RBASIC ====> flags --------------->0x0000000803 SINGLETON FLAG RBASIC ====> klass --------------->0x00f6fddcd0 metaclass_module RCLASS ====> iv_tbl -------------->0x000973d2d8 RCLASS ====> m_tbl --------------->0x000973d290 RCLASS ====> super --------------->0x00f6fddd0c rb_cModule Now since I have a list of Base Reference Objects I can convert to the internal name of the object -- Such as 0x00f6fddd20 ==> rb_cObject However, What I need is a way to convert from a reference addess (ie. 0x00f6fddd20) to the ID and/or Symbol Name associated with that Object Address (if any!) ! Is there a way to do this EITHER at Ruby Level or 'C' Level ?