[Ironruby-core] Strange type error

Jimmy Schementi Jimmy.Schementi at microsoft.com
Wed May 13 11:53:24 EDT 2009


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

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

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


> -----Original Message-----
> From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-
> bounces at rubyforge.org] On Behalf Of Seo Sanghyeon
> Sent: Wednesday, May 13, 2009 12:16 AM
> To: ironruby-core at rubyforge.org
> Subject: Re: [Ironruby-core] Strange type error
> 2009/5/13 Shri Borde <Shri.Borde at microsoft.com>:
> > 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
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core

More information about the Ironruby-core mailing list