From: leon breedt Date: 2004-11-23T05:48:34+09:00 Subject: Re: Blocks, serailizing, and "configure, don't integrate" Hi Hugh, I don't see much benefit to be gained from serializing the callback procs themselves. I would rather go for the approach where you serialize an identifier associated with the callback. A good example of what I'm getting at is Glade. Its a UI description format (XML) for Gtk/Gnome. When you load in the Glade file, you get back a container that holds all the Gtk UI object instances. The Glade file only stores the callback name (they call it signals); in your code you then dispatch to the appropriate method based on that name. The Ruby Glade bindings can be found together with the Ruby Gnome2 bindings: http://ruby-gnome2.sourceforge.jp/