[#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: Understanding code: Kernel#require and blocks.

From: Paul Brannan <pbrannan@...>
Date: 2007-05-04 09:26:18 UTC
List: ruby-core #11086
On Fri, May 04, 2007 at 06:18:19PM +0900, Hugh Sasse wrote:
> irb(main):008:0> require "footlewuddlewix" {|x| puts "got #{x}" }

The above does compile on 1.9, but on pre-1.9, you need:

require("footlewuddlewix") {|x| puts "got #{x}" }

> No, if require fails it raises an exception:
> 
> irb(main):003:0> require "footlewuddlewix"
> LoadError: no such file to load -- footlewuddlewix
>         from (irb):3:in `require'
>         from (irb):3
>         from :0
> irb(main):004:0>

So does Hash#fetch, if no default value or block is passed in.

Paul


In This Thread