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

yarv-dev-en:56

From: SASADA Koichi <ko1 atdot.net>
Date: Thu, 23 Feb 2006 01:33:54 +0900
Subject: [yarv-dev-en:56] notabug> Re: [BUG] "foo" + RuntimeError.new("bar")

Hi,

Ilmari Heikkinen wrote:
> Bumped into this when running imlib2-ruby tests. 
> I don't know if this is a bug or a 1.9 feature :)
> 
> 
> ruby1.8 -ve 'p "foo" + RuntimeError.new("bar")'
> ruby 1.8.4 (2005-12-24) [i486-linux]
> "foobar"
> 
> ruby-yarv -ve 'p "foo" + RuntimeError.new("bar")'
> ruby 2.0.0 (Base: Ruby 1.9.0 2006-02-14) [i686-linux]
> YARVCore 0.4.0 Rev: 470 (2006-02-22) [opts: ]
> -e:1:in `+': can't convert RuntimeError into String (TypeError)
> 	from -e:1:in `<main>'
> 
> 

$ ruby -ve 'p "foo" + RuntimeError.new("bar")'
ruby 1.9.0 (2006-02-14) [i686-linux]
-e:1:in `String#+': can't convert RuntimeError into String (TypeError)
        from -e:1

It's seems specification.


Regards,
-- 
// SASADA Koichi at atdot dot net


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

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

        55 2006-02-23 01:31 [kig misfiring.net   ] [BUG] "foo" + RuntimeError.new("bar")   
->      56 2006-02-23 01:33 ┗[ko1 atdot.net       ] notabug> Re: [BUG] "foo" + RuntimeError.new("bar")
        59 2006-02-23 02:07  ┗[surrender_it yahoo.i]