From: ts <decoux / moulon.inra.fr>
Subject: [ruby-talk:02396] Re: Ruby/Glade usage questions.
Date: Sat, 8 Apr 2000 15:31:37 +0200 (MET DST)

> >>>>> "Y" == Yasushi Shoji <yashi / yashi.com> writes:
> 
> Y> Ruby/Gtk uses class Data a lot.  Marshal.dump can't handle it, AFAIK
> 
>         if (rb_respond_to(obj, s_dump)) {
>             VALUE v;
>  
>             w_byte(TYPE_USERDEF, arg);
>             w_unique(rb_class2name(CLASS_OF(obj)), arg);
>             v = rb_funcall(obj, s_dump, 1, INT2NUM(limit));
>             if (TYPE(v) != T_STRING) {
>                 rb_raise(rb_eTypeError, "_dump() must return String");
>             }
>             w_bytes(RSTRING(v)->ptr, RSTRING(v)->len, arg);
>             return;
>         }
> 
>  no ?

I'm sorry, I don't think I get your point.  Are you suggesting to
implement the method 's_dump', which returns class String, for class
Data?

if so, how do you handle c pointers?

if not, could you explain me a bit more?

regards,
--
          yashi