From: "Charles E. Thornton" Date: 2005-10-15T08:22:02+09:00 Subject: Re: Wilderness: Need Code to invoke ELTS_SHARED response Mauricio Fern�ndez wrote: >On Sat, Oct 15, 2005 at 04:43:05AM +0900, Charles E. Thornton wrote: > > >>v1 = "foo".clear #==> undefined method `clear' for "foo" :String >> >>"clear" only works for HASH and ARRAY (oh yeah, SET and QUEUE too)? >> >> > >$ ~/ruby1.9/bin/ruby -ve "p 'foo'.clear" >ruby 1.9.0 (2005-09-13) [i686-linux] >"" > >Try > a = ("a" * 100)[0,100] > > > OK - Thanks That did it! OBJECT ====> Object Address ------>0x00f6fccfd4 STRING RBASIC ====> flags --------------->0x0000002007 SHARED RBASIC ====> klass --------------->0x00f6fdb7dc rb_cString RSTRING ===> len ----------------->1 RSTRING ===> ptr ----------------->0x00093f5f28 a RSTRING ===> aux.shared ---------->0x00f6fcd0b0 OBJECT ====> Object Address ------>0x00f6fcd0b0 STRING RBASIC ====> flags --------------->0x0000000007 RBASIC ====> klass --------------->0x00f6fdb7dc rb_cString RSTRING ===> len ----------------->1 RSTRING ===> ptr ----------------->0x00093f5f28 a -- GodFather -- 667 Neighbor of the Beast