[Ironruby-core] String Equality Operation

Aaron Clauson lists at ruby-forum.com
Mon Feb 18 04:01:52 EST 2008


Hi There,

I'm doing a bit of playing around with IronRuby and ticking along ok.
One thing which I'm having difficulty with though is string equality
between a string that's come from an external object.

Example:

mystring = $external.MyMethod
puts "mystring=#{mystring}."

if mystring == 'abcd'
 puts "Match."
else
 puts "No match.
end

Output:

mystring=abcd.
No Match.

So I can get the value from my external method ok but it's not macthing
up with the IronRuby string object.

Does anyone know whether this is something I'm doing wrong?

Regards,

Aaron
-- 
Posted via http://www.ruby-forum.com/.


More information about the Ironruby-core mailing list