Joel VanderWerf wrote:

> But loading is not so easy. You load the array, which tells you what
> class the object should be, as well as the values of the attrs. Then you
> have to rb_obj_alloc an instance (you can't call new), and repeat the
> work that goes on in r_regist and r_ivar. Again, this introduces a
> dependency on Ruby source code.

Actually, you'd want Data_Wrap_Struct instead of rb_obj_alloc or new.

--
Joel VanderWerf                          California PATH, UC Berkeley
mailto:vjoel / path.berkeley.edu                     Ph. (510) 231-9446
http://www.path.berkeley.edu                       FAX (510) 231-9512