From: Markus Jais Date: 2002-01-26T20:52:57+09:00 Subject: Proc question (with Gtk Menus) hello yesterday someone posted this code in response to one of my questions: require "gtk" class SampleWindow < Gtk::Window def pn(msg) return Proc.new {puts msg,"\n"} end def initialize super items=[ ["/_File", nil, "", nil, nil], ["/File/_New", "N", "", pn("New"), nil], ["/File/_Quit", "Q", "", pn("Quit", nil], ....... the 4th argument in the array has to be a function which returns a Proc lets say I want to call this function also in another place and there it should be a normal function which does not just return a Proc object. Is this possible?? when I change the function to def pn(msg) puts msg end then the function always gets executed when I puts it in the array maybe I am just blind or haven't understand how this Proc stuff really works? please help. this drives me crazy :-) markus