[#83096] File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?}) — Nobuyoshi Nakada <nobu@...>
On 2017/10/04 8:47, [email protected] wrote:
5 messages
2017/10/04
[#83100] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Eric Wong <normalperson@...>
2017/10/04
Nobuyoshi Nakada <[email protected]> wrote:
[#83105] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Nobuyoshi Nakada <nobu@...>
2017/10/04
On 2017/10/04 15:55, Eric Wong wrote:
[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>
Hello,
9 messages
2017/10/04
[#83113] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/05
This has been requested countless times, then rejected each and every time.
[#83129] Re: Alias Enumerable#include? to Enumerable#includes?
— Alberto Almagro <albertoalmagro@...>
2017/10/05
Sorry I didn't found it on the core mail list's archive.
[#83138] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/06
Ruby has not been made of popular votes so far. You have to show us
[#83149] Re: Alias Enumerable#include? to Enumerable#includes?
— Eric Wong <normalperson@...>
2017/10/06
Alberto Almagro <[email protected]> wrote:
[#83200] [Ruby trunk Feature#13996] [PATCH] file.c: apply2files releases GVL — normalperson@...
Issue #13996 has been reported by normalperson (Eric Wong).
4 messages
2017/10/10
[ruby-core:83266] [Ruby trunk Feature#12602] Add NilClass#to_d
From:
andyogzewalla@...
Date:
2017-10-13 16:50:07 UTC
List:
ruby-core #83266
Issue #12602 has been updated by wizardofogz (Andy Ogzewalla). I think this is a good addition to make behavior of numeric types consistent. Is there a reason this was not done initially? ---------------------------------------- Feature #12602: Add NilClass#to_d https://bugs.ruby-lang.org/issues/12602#change-67225 * Author: Domon (Chun-wei Kuo) * Status: Assigned * Priority: Normal * Assignee: mrkn (Kenta Murata) * Target version: ---------------------------------------- `bigdecimal/util` adds a `#to_d` method to many native classes, as a shortcut to converting them to `BigDecimal`, e.g. ```ruby require 'bigdecimal' require 'bigdecimal/util' 1.23.to_d # => #<BigDecimal:7fa4f11f0958,'0.123E1',18(36)> ``` However, `#to_d` is not added to `NilClass`: ```ruby nil.to_d # => NoMethodError: undefined method `to_d' for nil:NilClass ``` While `to_i`, `to_f`, etc. works on `nil`: ```ruby nil.to_i # => 0 nil.to_f # => 0.0 ``` I think it is reasonable to make `to_d` behave more like its counterparts. Therefore, I tried implementing the `NilClass#to_d` method in `bigdecimal/util` with a test. The method always returns `0` in `BigDecimal`. Please see attached patch. Thanks! :) ---Files-------------------------------- add-nil-to-d.patch (1.34 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>