From: Emil Ong Date: 2001-07-03T00:32:52+09:00 Subject: [ruby-talk:17154] Re: Calling Marshal.dump/load from C That did it! Thanks, Emil On Tue, 3 Jul 2001, ts wrote: > >>>>> "E" == Emil Ong writes: > > E> transmits the marshaled string. How do I call Marshal.dump or > E> Marshal.load from C? I've gotten as far as getting IDs for the > > I suspect that someone in Japan don't want that you call it :-) > > Here what I do in bdb > > bdb_mMarshal = rb_const_get(rb_cObject, rb_intern("Marshal")); > > Then to call for example #dump > > id_dump = rb_intern("dump"); > _bdb_tmp_ = rb_funcall(bdb_mMarshal, id_dump, 1, a); > > but please don't repeat it :-) > > > Guy Decoux >