[MacRuby-devel] [MacRuby] #412: Calling return from a Proc raises an exception

MacRuby ruby-noreply at macosforge.org
Fri Oct 30 12:34:56 PDT 2009


#412: Calling return from a Proc raises an exception
-------------------------------+--------------------------------------------
 Reporter:  mike@…             |       Owner:  lsansonetti@…        
     Type:  defect             |      Status:  new                  
 Priority:  blocker            |   Milestone:                       
Component:  MacRuby            |    Keywords:                       
-------------------------------+--------------------------------------------

Comment(by lsansonetti@…):

 Yes, a lambda is a Proc too.

 {{{
 $ ./miniruby -e "def foo; 1.times { return 42 }; end; p foo"
 42
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/412#comment:4>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list