From: nobu.nokada@... Date: 2003-04-13T12:25:20+09:00 Subject: Re: Looking for efficient Ruby C way to append strings Hi, At Sun, 13 Apr 2003 05:02:22 +0900, Jim Freeze wrote: > rb_funcall(a, rb_intern("chop!"), 0, NULL); > // needs to remove '+' from b > rb_str_append(a, b); > > It is tempting to increment the internal pointer > of b by one and then append to a. It will certainly corrupt heap. You must never do it absolutely. -- Nobu Nakada