Mauricio FernŠŌdez wrote:
> On Tue, Mar 30, 2004 at 04:02:54AM +0900, Brad Hilton wrote:
> 
>>Is this change intentional?  If so, can someone recommend a better way 
>>to exit early from a Proc object?  The catch/throw approach doesn't feel 
>>very natural.
> 
> 
> $ ~/ruby1.9/bin/ruby  -v -e "p lambda{ return 1 }.call"
> ruby 1.9.0 (2004-03-25) [i686-linux]
> 1

Just creating a proc {} or labmda {} doesn't display the problem.  You 
need to pass it to an iterator it seems:

hash = { 'a' => 1, 'b' => 2 }
callback = proc { return }
hash.each(&callback)

==> return from proc-closure (LocalJumpError)