https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112008-06-18T01:51:58ZRuby Issue Tracking SystemRuby 1.8 - Bug #175: Rational#power2 raises a NameError or causes infinite loops when passed a Rationalhttps://redmine.ruby-lang.org/issues/175?journal_id=2122008-06-18T01:51:58ZAnonymous
<ul></ul><p>=begin<br>
Why is ruby 1.8.7 not using version 1.5.8 from<br>
<a href="http://dev.ctor.org/soap4r" class="external">http://dev.ctor.org/soap4r</a>? What is the process for including soap4r<br>
changes? Is it tied to nahi?</p>
<p>Just curious ;-)</p>
<p>eTM</p>
<p>=end</p> Ruby 1.8 - Bug #175: Rational#power2 raises a NameError or causes infinite loops when passed a Rationalhttps://redmine.ruby-lang.org/issues/175?journal_id=2342008-06-20T02:27:04Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>=begin<br>
Applied in changeset r17449.<br>
=end</p> Ruby 1.8 - Bug #175: Rational#power2 raises a NameError or causes infinite loops when passed a Rationalhttps://redmine.ruby-lang.org/issues/175?journal_id=2362008-06-21T00:55:31ZNoKarma (Arthur Schreiber)schreiber.arthur@gmail.com
<ul></ul><p>=begin<br>
Rational#power2 is still not working correctly:</p>
<p>Rational(1, 4).power2(Rational(1, 2)) # => NameError: undefined local variable or method `num' for 1/4:Rational</p>
<p>Rational(1, 4).power2(Rational(1, 4)) # => Infinite Loop<br>
Rational(1, 2).power2(Rational(1, 2)) # => Infinite Loop</p>
<p>=end</p> Ruby 1.8 - Bug #175: Rational#power2 raises a NameError or causes infinite loops when passed a Rationalhttps://redmine.ruby-lang.org/issues/175?journal_id=2372008-06-21T05:04:33Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>matz (Yukihiro Matsumoto)</i></li><li><strong>% Done</strong> changed from <i>100</i> to <i>0</i></li></ul><p>=begin</p>
<p>=end</p> Ruby 1.8 - Bug #175: Rational#power2 raises a NameError or causes infinite loops when passed a Rationalhttps://redmine.ruby-lang.org/issues/175?journal_id=2382008-06-21T05:05:40Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul></ul><p>=begin<br>
Hi,</p>
<p>In message "Re: <a href="https://blade.ruby-lang.org/ruby-core/17354">[ruby-core:17354]</a> [Ruby 1.8 - Bug <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Rational#power2 raises a NameError or causes infinite loops when passed a Rational (Closed)" href="https://redmine.ruby-lang.org/issues/175">#175</a>] Rational#power2 raises a NameError or causes infinite loops when passed a Rational"<br>
on Sat, 21 Jun 2008 00:54:00 +0900, Arthur Schreiber <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> writes:</p>
<p>|Rational#power2 is still not working correctly:</p>
<p>I'll see. But note that power2 is not a part of public API of<br>
Rational.</p>
<pre><code> matz.
</code></pre>
<p>=end</p> Ruby 1.8 - Bug #175: Rational#power2 raises a NameError or causes infinite loops when passed a Rationalhttps://redmine.ruby-lang.org/issues/175?journal_id=3512008-07-04T19:43:09Zmatz (Yukihiro Matsumoto)matz@ruby.or.jp
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>=begin</p>
<p>=end</p>