[#99115] [Ruby master Bug#17023] How to prevent String memory to be relocated in ruby-ffi — larskanis@...
Issue #17023 has been reported by larskanis (Lars Kanis).
22 messages
2020/07/10
[#99375] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings — merch-redmine@...
Issue #17055 has been reported by jeremyevans0 (Jeremy Evans).
29 messages
2020/07/28
[#101207] [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— merch-redmine@...
2020/12/02
Issue #17055 has been updated by jeremyevans0 (Jeremy Evans).
[#101231] Re: [Ruby master Feature#17055] Allow suppressing uninitialized instance variable and method redefined verbose mode warnings
— Austin Ziegler <halostatue@...>
2020/12/03
What does this mean?
[ruby-core:99170] [Ruby master Bug#17032] BigDecimal .to_d is behaving inconsistent compared to .to_f
From:
tilo.sloboda@...
Date:
2020-07-14 19:56:49 UTC
List:
ruby-core #99170
Issue #17032 has been reported by TiloS (Tilo S).
----------------------------------------
Bug #17032: BigDecimal .to_d is behaving inconsistent compared to .to_f
https://bugs.ruby-lang.org/issues/17032
* Author: TiloS (Tilo S)
* Status: Open
* Priority: Normal
* ruby -v: 2.5.5
* Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
----------------------------------------
As a Ruby user I would expect `.to_f` and `.to_d` to behave identically.
Specifically `nil.to_d` should behave like `nil.to_f`
2.5.5 :001 > require 'bigdecimal'
=> true
2.5.5 :002 > require 'bigdecimal/util'
=> true
2.5.5 :003 > nil.to_f
=> 0.0
2.5.5 :004 > nil.to_d
Traceback (most recent call last):
2: from /Users/tsloboda/.rvm/rubies/ruby-2.5.5/bin/irb:11:in `<main>'
1: from (irb):4
NoMethodError (undefined method `to_d' for nil:NilClass)
# users should not have to resort to this:
2.5.5 :005 > nil.to_f.to_d
=> 0.0
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>