I updated the bug.

Thanks,
Martin

On Mon, Aug 17, 2009 at 10:58 AM, Tomas Matousek <
tomas.matou...@microsoft.com> wrote:

> Please, update/reopen the bug. This is probably caused by CLR string
> including Enumerable that provides a default implementation of “inclide?”
> that calls “each”.
>
>
>
> Tomas
>
>
>
> *From:* ironruby-core-boun...@rubyforge.org [mailto:
> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Martin Smith
> *Sent:* Monday, August 17, 2009 10:06 AM
> *To:* ironruby-core@rubyforge.org
> *Subject:* Re: [Ironruby-core] CLR String: can't convert Range into Fixnum
> (Bug?)
>
>
>
> Hello,
>
> I believe i've run into another bug that is probably related to this one:
>
> require "System.Windows.Forms"
> include System::Windows::Forms
> b = Button.new
> b.text = "Hello"
> b.text.include?("ell") # this returns false, it should return true.
> b.text.to_s.include?("ell") # this correctly returns true
>
> it seems as though these two issuse are related and probably the clr
> strings aren't being properly marshaled into ruby strings.
>
> Should I update the bug on codeplex or file a new one?
>
> Thanks,
> Martin
>
> On Mon, Aug 3, 2009 at 5:32 PM, Tomas Matousek <
> tomas.matou...@microsoft.com> wrote:
>
> 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[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
>
>
>
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to