On Tue, 14 May 2002 14:40:56 GMT ts <decoux / moulon.inra.fr> wrote: > >>>>> "m" == mips <mips / cyberspace.org> writes: > > m> ----begin---- > m> pos_menu = Proc.new do > m> | m,x,y | > > m> printf("x,y = %d,%d\n", x, y) > > this script work for me, i.e. it display the menu ("Halo Exit" at > (824, 501)) > > pigeon% cat b.rb > #!/usr/bin/ruby > require 'gtk' > $main = Gtk::Window::new(Gtk::WINDOW_TOPLEVEL) > pos_menu = Proc.new do | m,x,y | > puts "x, y = #{x}, #{y}" > [824, 501] Well it works too when i remove the 'return', i'm missing something in the usage of return. Thanks a lot ! mips