From: Kazuhiro NISHIYAMA Date: 2000-10-15T01:48:25+09:00 Subject: [ruby-dev:11221] Re: Thread.new with irb (PR#20) [ruby-dev:11205]と同じスクリプトで-dをつけていると ネストしたThread.newで落ちました。 # 今度はjoinを忘れずにつけてます(^^; % ruby -v e3.rb 'Thread.new{Thread.new{Thread.new}.join}.join' ruby 1.6.2 (2000-10-12) [i586-linux] (eval):1:in `initialize': must be called with a block ok % ruby -vd e3.rb 'Thread.new{Thread.new{Thread.new}.join}.join' ruby 1.6.2 (2000-10-12) [i586-linux] Exception `ThreadError' at (eval):1 - must be called with a block (eval):1:in `initialize': must be called with a block (ThreadError) from (eval):1:in `new' from (eval):1:in `sandbox' from (eval):1:in `initialize' from (eval):1:in `new' from (eval):1:in `sandbox' from (eval):1:in `initialize' from (eval):1:in `new' from (eval):1:in `sandbox' from e3.rb:6:in `sandbox' from e3.rb:29 from e3.rb:27:in `start' from e3.rb:27 % --- ZnZ(ゼット エヌ ゼット) 西山和広(Kazuhiro NISHIYAMA) mailto:zn@mbf.nifty.com