Hi, At Thu, 23 Jan 2003 12:16:34 +0900, Yukihiro Matsumoto wrote: > But in some cases, local variables may vanish before function > terminates, for example: > > VALUE a; > char *p > > a = function_returns_string(); > p = RSTRING(a)->ptr; > ... process goes on referring p, but no a ... > > in such cases, an object referred from a might be reclaimed. > For a workaround, you can declare a as > > volatile VALUE a; > > to turn off too much optimization. Or use StringValuePtr() provided for such cases. -- Nobu Nakada