From: Nobuyoshi Nakada Date: 2010-04-03T09:59:42+09:00 Subject: [ruby-core:29236] Re: [Bug #3072] Classes Inheriting from Data Hi, At Sat, 3 Apr 2010 05:00:04 +0900, Shyouhei Urabe wrote in [ruby-core:29232]: > OK, I admit its name is poor. I admit there are many > extensions that use Data_Wrap_Struct without inheriting Data > class. Things are not going as planned at this point. But > the plan itself is what I explained. > > And did I mention there are possibilities for changing the > situation when you can persuade us? Regarding the implementation, T_OBJECT and T_DATA methods are guaranteed not to make any asumption on the internal structure of their objects. So you can use T_OBJECT for Data_Wrap_Struct instead. A possibile plan would be removal Data class and replacement by rb_cObject, but I can't estimate how it will affect widely. -- Nobu Nakada