yarv-dev:1069
From: "Ken Date" <itacchi gmail.com>
Date: Tue, 25 Jul 2006 23:17:27 +0900
Subject: [yarv-dev:1069] open>can't convert <class> into Array
伊達です。 #to_a を持たないオブジェクトが多重代入の右辺に * 付きで現れたときの動きが 1.8 とも 1.9 とも異なります。 例 Symbol の場合 $ ruby18 -v -e 's=*:symbol;p s' ruby 1.8.4 (2005-12-24) [i686-linux] :symbol $ ruby19 -v -e 's=*:symbol;p s' ruby 1.9.0 (2006-07-21) [i686-linux] [:symbol] $ ruby-yarv -v -e 's=*:symbol;p s' ruby 2.0.0 (Base: Ruby 1.9.0 2006-04-08) [i686-linux] YARVCore 0.4.1 Rev: 527 (2006-07-19) [opts: [direct threaded code] [inline method cache] ] -e:1:in `<main>': can't convert Symbol into Array (TypeError) Fixnum などなどでも同じです。 $ ruby-yarv -e 's=*1;p s' -e:1:in `<main>': can't convert Fixnum into Array (TypeError) $ ruby-yarv -e 's=*Object.new;p s' -e:1:in `<main>': can't convert Object into Array (TypeError) -- ML: yarv-dev quickml.atdot.net Info: http://www.atdot.net/~ko1/quickml
-> 1069 2006-07-25 23:17 [itacchi gmail.com ] open>can't convertinto Array 1070 2006-07-25 23:41 ┗[matz ruby-lang.org ]