From: ts Date: 2001-09-17T20:16:10+09:00 Subject: [ruby-talk:21284] Re: extensions libraries >>>>> "M" == Michal Rokos writes: M> One way is: M> use Data_Wrap_Struct, ..., and struct RData add type ident to every M> mine struct M> + I can use existing functions M> - I have to know where ident is, but I don't know the real structure M> of struct XXX {...}; (=> type ident is always 1st record in structure) not really a problem. M> - I can forget to add ident to struct M> - can be messed up with other T_DATA not really. M> ??? Any other way? you can use, in some case, the mark function (if it exist). See how ruby check for a Method object. Guy Decoux