From: Mark Sparshatt Date: 2004-04-04T18:25:02+09:00 Subject: Re: recursion w/ blocks; *this Ceri Storey wrote: >def a_method(arg, &block) > if arg > 10 > a_method(arg.succ, &block) > end >end > > > At the risk of sounding pendantic I just have to point out that this will recurse infinitely if arg > 10. I think you meant def a_method(arg, &block) if arg < 10 a_method(arg.succ, &block) end end -- Mark Sparshatt