From: TAKAHASHI Masayoshi Date: 2002-10-16T06:48:45+09:00 Subject: ruby-dev summary 18458-18504 Hi all, Sorry to post so late. This is a summary of ruby-dev ML in these days. ---- ruby-dev #18458-18504 (2002-10-05 ... 2002-10-12) ---- [ruby-dev:18471] How about String#clear? YANAGAWA Kazuhisa proposed a method String#clear. The method set the string empty, like Array#clear for Array. It can be defined in Ruby as follows: class String def clear replace "" end end [ruby-dev:18465] warning for outer local variable assignment by block parameter Tanaka Akira proposed warning for outer local variable assignment by block parameter. (ex.) i = 0 foo.each{|i| ## <= warning ..... GOTO Kentaro doubted if it is not the rare conditions, but Matz thinks that the frequency is not much for the risk, so it will be implemented. [ruby-dev:18482] mem leak? WATANABE Tetsuya pointed out that in 1.7.3(at 10/10 morning) a script which uses large objects consumes huge memory and it leads pageout. Akira Tanaka suggested that GC should be triggered when the amount of the allocated memory is more than two times of the memory which used by live objects. Nobuyoshi Nakada made a patch ([ruby-dev:18487]) and commited it. TAKAHASHI 'Maki' Masayoshi E-mail: maki@rubycolor.org