in reply to Keeping track of classes

You might see how they do it at Gtk2-perl. It has a lot of similar issues and I know a lot of work was done on the design of the perl/xs portion. You could also ask on that list, the link to which is on that page.

--traveler