On Tue, 27 Nov 2001, Tobias Reif wrote:

> Why?

You are not passing a block to from_to when you call it recursively.  Try
this:

def from_to first,last,&block
   current = first
   yield current
   if not current >= last
     from_to current.succ,last,&block
   end
end

from_to(3,5) do |integer|
   print integer.to_s + "\n"
end

Paul