From: ts Date: 2002-05-15T00:39:08+09:00 Subject: Re: [BUG] trying to fix ruby-gtk's menu.popup >>>>> "m" == mips writes: m> Well it works too when i remove the 'return', i'm missing something in m> the usage of return. You have probably written something like this pigeon% cat b.rb #!/usr/bin/ruby def a pos_menu = Proc.new do |m, x, y| puts "x, y : #{x}, #{y}" return [1, 2] end p "result : #{pos_menu['m', 12, 24]}" end puts "call a() : #{a}" pigeon% pigeon% b.rb x, y : 12, 24 call a() : 12 pigeon% the `return' in pos_menu is the exit point for #a, not for the Proc object. Guy Decoux