I've reduced the error I reported in ruby-talk:84013 to the following code:

  set_trace_func(proc{})
 
  def m
    [].fetch(2) {return nil}
  end
 
  m

Running it produces:

  $ ruby -v t.rb
  ruby 1.8.0 (2003-10-11) [i686-linux]
  t.rb:4: unexpected return

Removing the call to set_trace_func removes the error.

I'm still in shock that the problem wasn't in my extension :-/

Thanks,


Nathaniel

<:((><