[fxruby-users] FXTextField

Joel VanderWerf vjoel at path.berkeley.edu
Fri Jan 27 16:52:44 EST 2006


Uwe Hartl wrote:
> Hi Joel,
> not really, I tried it with break 0 and get:
> ./Dataviewclasses.rb:66:in `call': break from proc-closure (LocalJumpError)
>         from /usr/lib/ruby/site_ruby/1.8/fox14/responder2.rb:57:in 
> `onHandleMsg'
> 
> Uwe

Right, sorry. When a block has been turned into a proc (closure) you can
still use next, however:

def foo(&bl)
  @goo = bl
end

foo { next 4; raise }

p @goo.call # ==> 4

-- 
      vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407


More information about the fxruby-users mailing list