[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66144] [ruby-trunk - Bug #10487] [PATCH 3/3] More than 3 arguments Passing to CMath.log doesn't make sense.
From:
mail@...
Date:
2014-11-08 19:57:28 UTC
List:
ruby-core #66144
Issue #10487 has been updated by gogo tanaka. Only my concern is constant `E` may be overrided. ---------------------------------------- Bug #10487: [PATCH 3/3] More than 3 arguments Passing to CMath.log doesn't make sense. https://bugs.ruby-lang.org/issues/10487#change-49848 * Author: gogo tanaka * Status: Open * Priority: Normal * Assignee: * Category: * Target version: * ruby -v: 2.2.0dev * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- Hi, there. I was wondering which is prefer reporting this issue as bugs or feature. Finally I decided to report as bugs because I thought such a issue being totally unexpected can be called bugs. Aside from that, let me show the before my patch and after my patch. ## Before ``` CMath.log(1i,1,1,1,1,1,1,1,1) # => (NaN+Infinity*i) ``` ## After ``` CMath.log(1i,1,1,1,1,1,1,1,1) # => ArgumentError: wrong number of arguments (9 for 1..2) ``` `def log(z, b=E)` may look little bit strange, but I assert for all num `log(num)` equal `log(num, E)` and checking second argument passing or not takes pain. Thanks. gogo. ---Files-------------------------------- modify_cmath.rb.patch (1.15 KB) adjust_test_complex.rb.patch (955 Bytes) update_NEWS.patch (629 Bytes) -- https://bugs.ruby-lang.org/