[#61424] [REJECT?] xmalloc/xfree: reduce atomic ops w/ thread-locals — Eric Wong <normalperson@...>

I'm unsure about this. I _hate_ the extra branches this adds;

13 messages 2014/03/12

[ruby-core:61339] [ruby-trunk - Bug #9604] [Open] Comparing ranges or range includes range

From: w.rorchach@...
Date: 2014-03-06 19:39:33 UTC
List: ruby-core #61339
Issue #9604 has been reported by Nick Kotykhov.

----------------------------------------
Bug #9604: Comparing ranges or range includes range
https://bugs.ruby-lang.org/issues/9604

* Author: Nick Kotykhov
* Status: Open
* Priority: Low
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422)
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Hello guys,

First I got to say it's not like real bug - but will be good to have. Then in some case I I need compare to ranges on including each other: so I did like 
    (1..10).include? (2..7)  
what kinda logical, but it always *false*. So I have to use: 
    (1..10).grep(2..7).empty?



-- 
http://bugs.ruby-lang.org/

In This Thread

Prev Next