From: Dave Sims Date: 2005-07-29T05:28:33+09:00 Subject: Re: Ruby/C newbie question That would be it. Thanks Tilman. Tilman Sauerbeck wrote: >Dave Sims [2005-07-29 05:02]: > > >>I'm trying to set a char at a particular index in a Ruby String in C using the >>rb_funcall method, but since there is no text signature for this method call >>(that I know of), I'm having a hard time with it. Right now I'm messing with >>something like: >> >> rb_funcall(textString, rb_intern("[]="), 2, index); >> >> > >rb_funcall (s, rb_intern ("[]="), 2, INT2FIX(0), rb_str_new2 ("A")); > >That would change the first character of the String s to "A". > >Regards, >Tilman > > >