[前][次][番号順一覧][スレッド一覧][生データ]

yarv-dev:830

From: sheepman <sheepman sheepman.sakura.ne.jp>
Date: Thu, 9 Feb 2006 09:20:19 +0900
Subject: [yarv-dev:830] open> $& and other variables are not thread local

こんにちは、sheepman です。

バグか未実装かよくわからないのですが、$~, $&, $1 などの組み込み変数が
ruby-1.9 と違ってスレッドローカルではありません。

$ cat t.rb
/(.)/ =~ "a"
Thread.new{
  p $~, $&, $1
}.join

$ ./miniruby -v t.rb
ruby 1.9.0 (2005-11-18) [i686-linux]
YARVCore 0.3.3 (rev: 371) [opts: ]
#<MatchData:0x402977d0>
"a"
"a"

$ ruby-1.9 -v t.rb
ruby 1.9.0 (2005-12-30) [i686-linux]
nil
nil
nil

-- 
sheepman / TAMURA Takashi
sheepman sheepman.sakura.ne.jp http://sheepman.parfait.ne.jp/

-- 
ML: yarv-dev quickml.atdot.net
使い方: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧][生データ]

->     830 2006-02-09 09:20 [sheepman sheepman.sa] open> $& and other variables are not thread local
       832 2006-02-10 08:47 ┗[ko1 atdot.net       ] fixed> Re: open> $& and other variables are not thread local
       835 2006-02-11 10:48  ┗[sheepman sheepman.sa] open> $& and other variables in proc are not thread local
       836 2006-02-11 11:08   ┗[ko1 atdot.net       ]                                   
       844 2006-02-12 15:13    ┗[sheepman sheepman.sa]