From: Hidetoshi NAGAI Date: 2004-05-07T00:09:56+09:00 Subject: Re: $SAFE = 3.5? From: ts Subject: Re: $SAFE = 3.5? Date: Thu, 6 May 2004 23:23:18 +0900 Message-ID: <200405061423.i46ENB000686@moulon.inra.fr> > No need for this, you just need to use a method that you can trust like > String::new > proc{|s| $SAFE=4; wp.call(String.new(s.to_s))} How foolish I am! I was mistaken it is a problem that String.new(obj) calls obj.to_str if obj is not a String. It is NOT a problem because obj.to_str is called under $SAFE==4. I need more practice for Ruby programing. :-< Thank you. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)