List Info

Thread: Range "max" method does not handle Infinity




Range "max" method does not handle Infinity
user name
2006-05-24 04:37:59
Bugs item #4555, was opened at 2006-05-24 04:37
You can respond by visiting: 
http://rubyforge.org/tracke
r/?func=detail&atid=1698&aid=4555&group_id=426

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: James Masters (jamesm76)
Assigned to: Nobody (None)
Summary: Range "max" method does not handle
Infinity

Initial Comment:
> a = 1.0/0
=> Infinity

(0..a).max

[system hangs...]

------------------------------------------------------------
----------

You can respond by visiting: 
http://rubyforge.org/tracke
r/?func=detail&atid=1698&aid=4555&group_id=426

Range "max" method does not handle Infinity
user name
2006-05-24 08:23:04
Hi,

In message "Re: [ ruby-Bugs-4555 ] Range
"max" method does not handle Infinity"
    on Wed, 24 May 2006 13:37:59 +0900, noreplyrubyforge.org writes:

|Summary: Range "max" method does not handle
Infinity
|
|Initial Comment:
|> a = 1.0/0
|=> Infinity
|
|(0..a).max
|
|[system hangs...]

It is supported by 1.9.  I'm not sure it should be
backported to 1.8
or not, since it is a major behavior change.

							matz.

Range "max" method does not handle Infinity
user name
2006-05-27 01:03:02
On 24/05/06, Yukihiro Matsumoto <matzruby-lang.org> wrote:
>
> It is supported by 1.9.  I'm not sure it should be
backported to 1.8
> or not, since it is a major behavior change.


If it hangs the system in 1.8, it should be fixed since
hanging can never be
a good behavior.
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )