This project is closed and read-only.
Actions
Backport #9238
closedMonkey Patching Float class Infix Operators Produces Unexpected Result
Backport #9238:
Monkey Patching Float class Infix Operators Produces Unexpected Result
Status:
Closed
Assignee:
Description
Hello!
Patching Float class infix operators seem to work only if 2 are present. See the code below.
Updated by screenmutt (Dan Grahn) almost 13 years ago
I just saw this bug posted at https://bugs.ruby-lang.org/issues/9237. Please mark as duplicate.
Updated by screenmutt (Dan Grahn) almost 13 years ago
I just saw this bug posted at https://bugs.ruby-lang.org/issues/9237. Please mark as duplicate.
Updated by marcandre (Marc-Andre Lafortune) almost 13 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r44127.
Dan, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- insns.def: Fix optimization bug of Float#/ [Bug #9238]
Updated by marcandre (Marc-Andre Lafortune) almost 13 years ago
Cute bug.
You were lucky to figure out that redefining * "fixed" it!
Would have loved to mention that in my rubyconf talk :-)
Updated by marcandre (Marc-Andre Lafortune) almost 13 years ago
- Tracker changed from Bug to Backport
- Project changed from Ruby to 15
- Status changed from Closed to Open
- Assignee set to nagachika (Tomoyuki Chikanaga)
Updated by nagachika (Tomoyuki Chikanaga) over 12 years ago
Actions