Hi!

Here is a bug from a Chinese Forum.It's the link if you can read Chinese. :)
http://www.javaeye.com/topic/101327

if "string"
  puts "true"
else
  puts "false"
end

C Ruby: true
JRuby: false

We know all objects should be true except false and nil, so it's a bug.

I have debugged the code. The "string" as the if condition is parsed
as MatchNode, so it fails to match.

Ye Zheng

--
Everything is simple!

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to