From: Devin Mullins Date: 2005-08-09T19:28:15+09:00 Subject: Re: Storing a block and calling it later wanting it to return put of the method it's called in. Trans wrote: > d = D.new { return 'Y' } > > p d.lambda_return > p d.proc_return > > p d.lambda_return_blk > p d.proc_return_blk > >_produces_ > > "N" > "Y" > "N" > LocalJumpError > >Anyway to get the last to return the "Y"? > > -1 +1 -d = D.new { return 'Y' } +d = D.new { 'Y' } IIRC, PickAxe has a decent section on the difference between Proc.new, lambda, and blocks, specifically pertaining to 'return'. Devin