[#75687] [Ruby trunk Bug#12416] struct rb_id_table lacks mark function — shyouhei@...
Issue #12416 has been reported by Shyouhei Urabe.
3 messages
2016/05/23
[#75763] [Ruby trunk Feature#12435] Using connect_nonblock to open TCP connections in Net::HTTP#connect — mohamed.m.m.hafez@...
Issue #12435 has been reported by Mohamed Hafez.
3 messages
2016/05/28
[#75774] Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock — Mohamed Hafez <mohamed.m.m.hafez@...>
Hi all, every now and then in my production server, I'm
4 messages
2016/05/30
[#75775] Re: Errno::EAGAIN thrown by OpenSSL::SSL::SSLSocket#connect_nonblock
— Mohamed Hafez <mohamed.m.m.hafez@...>
2016/05/30
Or does MRI's OpenSSL::SSL::SSLSocket#connect_nonblock just return
[#75782] Important: Somewhat backwards-incompatible change (Fwd: [ruby-cvs:62388] duerst:r55225 (trunk): * string.c: Activate full Unicode case mapping for UTF-8) — Martin J. Dürst <duerst@...>
With the change below, I have activated full Unicode case mapping for
4 messages
2016/05/31
[ruby-core:75621] [Ruby trunk Bug#12402] Inline rescue behavior inconsistent for method calls with arguments and assignment
From:
bklang@...
Date:
2016-05-19 21:23:38 UTC
List:
ruby-core #75621
Issue #12402 has been reported by Ben Klang.
----------------------------------------
Bug #12402: Inline rescue behavior inconsistent for method calls with arguments and assignment
https://bugs.ruby-lang.org/issues/12402
* Author: Ben Klang
* Status: Open
* Priority: Normal
* Assignee:
* ruby -v: 2.4.0
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
In this example l'm intentionally passing bad data to `Date.parse` to trigger an exception. Depending on whether I use parenthesis in the method call, and whether I assign the result, I get different behavior for the inline rescue.
Code:
~~~
var1 = "apple"
var1 = Date.parse var1 rescue nil
var2 = "apple"
var2 = Date.parse(var2) rescue nil
def example1(bar)
Date.parse bar rescue nil
end
def example2(bar)
bar = Date.parse bar rescue nil
bar
end
def example3(bar)
bar = Date.parse(bar) rescue nil
bar
end
puts "Variable 1: #{var1.nil?}"
puts "Variable 2: #{var2.nil?}"
puts "Example method 1: #{example1("apple").nil?}"
puts "Example method 2: #{example2("apple").nil?}"
puts "Example method 3: #{example3("apple").nil?}"
~~~
I would expect all 5 outputs from the above script to return true.
Example:
Variable 1: false
Variable 2: true
Example method 1: true
Example method 2: false
Example method 3: true
--
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>