From: "RadosÅ‚aw BuÅ‚at" Date: 2008-01-10T09:36:04+09:00 Subject: Re: problem with closure/block > Has this changed in 1.9, or is it anticipated to change in 2.0 ? With small change (added .to_s method) $ cat proc.rb ########################### y=5 print "y: " + y.to_s + "\n" text_at_the_end = lambda do |y| print y + " text at the end\n" end print "y: " + y.to_s + "\n" def oneparam yield("oneparam") end oneparam(&text_at_the_end) print "y: " + y.to_s + "\n" ######################## $ ruby1.8 proc.rb y: 5 y: 5 oneparam text at the end y: oneparam $ ruby1.9 proc.rb y: 5 y: 5 oneparam text at the end y: 5 -- Rados³aw Bu³at http://radarek.jogger.pl - mój blog