http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=1211

IronRuby's Time implementation doesn't allow this, while MRI does.

n = Time.now
class RespondToF
  def to_f
    5.0
  end
end
n + RespondToF.new

Chronic does something like this in repeaters/repeater_time.rb:76

~js

> -----Original Message-----
> From: [email protected] [mailto:ironruby-core-
> [email protected]] On Behalf Of Seo Sanghyeon
> Sent: Wednesday, May 13, 2009 12:16 AM
> To: [email protected]
> Subject: Re: [Ironruby-core] Strange type error
>
> 2009/5/13 Shri Borde <[email protected]>:
> > I have seen that error message. The fix was the one-line change in
> Protocols.cs in
> http://github.com/shri/ironruby/commit/09b25e8c573464dc5868ab2521bd631a
> 013527c7. You can apply that change by hand (its not in the main
> ironruby repo yet) and see if that fixes the problem. The error message
> is somewhat generic, and it may or may not be the same issue.
>
> It didn't fix the problem. Probably a different issue.
>
> --
> Seo Sanghyeon
> _______________________________________________
> Ironruby-core mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ironruby-core

_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to