From: Paul Brannan Date: 2003-03-20T00:00:54+09:00 Subject: Re: ruby-dev summary 19773-19824 On Wed, Mar 19, 2003 at 04:23:11AM +0900, nobu.nokada@softhome.net wrote: > rb_str2cstr() calls #to_str method on non-String object and > returns its ptr but doesn't the result String itself. So the > object would be lost at next GC. To solve this problem, > StringValue() and StringValuePtr() macros were introduced. Ah, that makes sense. Thanks! Paul