From: shyouhei@... Date: 2017-01-20T04:26:28+00:00 Subject: [ruby-core:79178] [Ruby trunk Bug#13104] math.rb affects Rational literals Issue #13104 has been updated by Shyouhei Urabe. We looked at this issue at yesterday's developer meeting. The intension was not made clear, but we confirmed that mathn's global side-effects are the nature of that library. Maybe requiring it implies your willing to accept such surprising behaviour. ---------------------------------------- Bug #13104: math.rb affects Rational literals https://bugs.ruby-lang.org/issues/13104#change-62602 * Author: Nobuyoshi Nakada * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto * Target version: 2.5 * ruby -v: r57270 * Backport: 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED ---------------------------------------- Without mathn: ``` $ ruby -e 'p 1.0r' (1/1) ``` With mathn: ``` $ ruby -rmathn -e 'p 1.0r' 1 ``` Is this intentional? https://github.com/ruby/ruby/compare/trunk...nobu:bug/rational-literal-mathn -- https://bugs.ruby-lang.org/ Unsubscribe: