From: Minero Aoki Date: 2002-05-21T04:41:31+09:00 Subject: ruby-dev summary 17048-17127 Hi all, This is a summary of ruby-dev ML in these day.s By the way, which ML should we post these summaries, ruby-talk or ruby-core? ---- ruby-dev summary 17048-17127 ---- [ruby-dev:17060] rb_warn Tadayoshi Funaba has asked the criteria of warning. e.g. ruby 1.7 warns for Array#indexes. matz's answer: * If it would be methods that are removed in 1.8 branch. * If it would be methods that are preserved only for compatibility. [ruby-dev:17090] control groups No change of supplementary groups are admitted in current Ruby. Kazuhiro Nishiyama has proposed new methods Process.group(=), which call getgroups/setgroups(2). To tell the truth, you can change supplementary groups by syscall. But you won't like this idea :-) [ruby-dev:17095] irb & jarh Tanaka Akira has reported that irb's parser fails to parse some JARH (Just another Ruby Hacker) scripts (*1). This is known bug; The irb's parser cannot parse too complex syntax. Matz is planning to rewrite parser as a component (ruby object). Tanaka, Akira has presented a simple method to validate ruby scripts. def valid_syntax?(code) begin eval("BEGIN {return true}\n#{code}") rescue SyntaxError return false end return false end But this method cannot distinguish "middle of the valid program" from "end of the invalid program", so irb cannot use this. *1 http://www.ruby-lang.org/~eban/ruby/jarh.rb [ruby-dev:17122] Array#bsearch Beyond has requested a new method Array#bsearch. Responses: * bsearch requires that array had been sorted, but that is not its general status. * How about introducing SortedArray and implementing bsearch? -- Minero Aoki