[#74190] [Ruby trunk Feature#12134] Comparison between `true` and `false` — duerst@...
Issue #12134 has been updated by Martin D端rst.
3 messages
2016/03/07
[#74269] Type systems for Ruby — Rob Blanco <ml@...>
Dear ruby-core,
5 messages
2016/03/10
[#74395] [Ruby trunk Feature#12142] Hash tables with open addressing — shyouhei@...
Issue #12142 has been updated by Shyouhei Urabe.
3 messages
2016/03/17
[ruby-core:74684] [Ruby trunk Bug#11976] Assigning to nil as a hash short-circuits without error.
From:
naruse@...
Date:
2016-03-29 12:11:46 UTC
List:
ruby-core #74684
Issue #11976 has been updated by Yui NARUSE. Backport changed from 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: REQUIRED to 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE ruby_2_3 r54396 merged revision(s) 53485. ---------------------------------------- Bug #11976: Assigning to nil as a hash short-circuits without error. https://bugs.ruby-lang.org/issues/11976#change-57813 * Author: Sergei Matheson * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin14] * Backport: 2.0.0: DONTNEED, 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONE ---------------------------------------- When assigning to nil as a hash, the RHS gets short-circuited, and the hash assignment on nil returns nil. To reproduce: ~~~ruby nil[:some_key] = undefined_method # Expected: NameError: undefined local variable or method `undefined_method' for main:Object # Actual: evaluates to nil. No errors raised. ~~~ -- 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>