[#105450] [Ruby master Feature#18228] Add a `timeout` option to `IO.copy_stream` — "byroot (Jean Boussier)" <noreply@...>
Issue #18228 has been reported by byroot (Jean Boussier).
11 messages
2021/09/27
[ruby-core:105388] [Ruby master Bug#18188] -1 ** 0 is 1 not -1
From:
"jeremyevans0 (Jeremy Evans)" <noreply@...>
Date:
2021-09-22 23:33:50 UTC
List:
ruby-core #105388
Issue #18188 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Open to Rejected `-1**0` is parsed as `-(1**0)`, not `(-1)**0`. `(-1)**0` returns `1` ---------------------------------------- Bug #18188: -1 ** 0 is 1 not -1 https://bugs.ruby-lang.org/issues/18188#change-93801 * Author: r.burrowes@auckland.ac.nz (Robert Burrowes) * Status: Rejected * Priority: Normal * ruby -v: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-freebsd11.2] * Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Any negative number to the power of 0 is 1, but ruby is returning -1. i.e. it should be n == 0 ? 1 : x ** n /usr/local/ruby3.0/bin/ruby puts -1**0 -1 -- 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>