From: Federico Brubacher Date: 2007-06-11T22:46:00+09:00 Subject: Fwd: Unroller ------=_Part_74282_15551607.1181569560055 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! i was checking out the gem Unroller http://unroller.rubyforge.org/ that seems pretty promising but I think I couldn't make it work right, I wrote a simple helloworld program : require 'rubygems' require 'unroller' #Unroller::trace def outs(n) if n == 3 Unroller::trace do helloworld end else yield n end end def helloworld puts "hello world" end (1..10).each do |number| outs(number) { |x| puts x} end I initially tried to trace all the program but it generated many warnings, still the output for tracking the call to the helloworld method provides some warnings, here's the output : 1 2 | helloworld | unroller1.rb:8 | \ calling Object::helloworld Object::helloworld (unroller1.rb:15) (call): Warning: Expected unroller1.rb:14 =~ /def.*helloworld/, but was: | def helloworld Object::helloworld (unroller1.rb:16) (line): Warning: Expected unroller1.rb:14 =~ /def.*helloworld/, but was: | | puts "hello world y verano" hello world y verano | / returning from Object::helloworld 4 5 6 7 8 9 10 Am i doing something wrong? Regards and Thanks -- Federico Brubacher www.fbrubacher.com Colonial Duty Free Shop www.colonial.com.uy ------=_Part_74282_15551607.1181569560055--