This is a bug. I've filed it here http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1927
Tomas From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Martin Smith Sent: Monday, August 03, 2009 4:26 PM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] CLR String: can't convert Range into Fixnum (Bug?) Hello, I'm wondering if I've run into a bug. I have an XmlReader and the Name property returns a string (a clr string). This becomes an issue when i do something like: reader.name<http://reader.name>[5..10] This causes a can't convert Range into Fixnum error. Is this the expected behavior? This works fine: reader.name.to_s[5..10] Thanks, Martin
_______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core