[#11073] segfault printing instruction sequence for iterator — <noreply@...>

Bugs item #10527, was opened at 2007-05-02 14:42

14 messages 2007/05/02
[#11142] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Nobuyoshi Nakada <nobu@...> 2007/05/10

Hi,

[#11188] Re: [ ruby-Bugs-10527 ] segfault printing instruction sequence for iterator — Paul Brannan <pbrannan@...> 2007/05/16

On Thu, May 10, 2007 at 04:51:18PM +0900, Nobuyoshi Nakada wrote:

[#11234] Planning to release 1.8.6 errata — Urabe Shyouhei <shyouhei@...>

Hi all.

17 messages 2007/05/25

Re: Range#each and stringified floats - bug or feature?

From: Urabe Shyouhei <shyouhei@...>
Date: 2007-05-30 03:05:40 UTC
List: ruby-core #11339
Hi.

Daniel Berger wrote:
> irb(main):002:0> r2 = Range.new("1.0", "3.0")
> => "1.0".."3.0"

This has nothing to do with Floats. Ranges can be defined over instances
of Comparables, and String itself includes Comparable.

irb(main):001:0> r = "a" .. "c"
=> "a".."c"
irb(main):002:0> r.each {|i| p i }
"a"
"b"
"c"
=> "a".."c"




In This Thread

Prev Next