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.
if mystring == ‘abcd’
puts “Match.”
else
puts "No match.
end
If you look at the class of each of your strings you’ll find that they
are currently different types. mystring should be a ClrString and ‘abcd’
is a String. If you do mystring.to_s == ‘abcd’ it should return true.
We’re working on a plan to unify all string types and do lazy
conversions as necessary. We’re slammed doing MIX work so that won’t
start happening until we’re locked down for MIX (at least a couple of
weeks or so).
Thanks
-John
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.