Hi, Am Samstag, 24. Okt 2009, 08:55:11 +0900 schrieb Iñáki Baz Castillo: > El SáÃado, 24 de Octubre de 2009, Yukihiro Matsumoto escribi > > In message "Re: C extension: "malloc" and "rb_raise"" > > on Sat, 24 Oct 2009 08:43:32 +0900, Iki Baz Castillo <ibc / aliax.net> writes: > > > > |Perhaps Ruby havs a garbage collector for C? > > > > Ruby GC only handles Ruby objects and memory regions pointed by them. > > Thanks for clarify it. So I must use free() before rb_raise(). It's surely a matter of taste but I think you should not. Mixing different allocation methods in one C source file will detain you from understanding your own code just one month later. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de Still I'm convinced there should be a String#notempty? method.