[MacRuby-devel] [MacRuby] #388: Exception with next...

MacRuby ruby-noreply at macosforge.org
Thu Oct 15 10:04:17 PDT 2009


#388: Exception with next...
--------------------------------+-------------------------------------------
 Reporter:  rich@…              |       Owner:  lsansonetti@…        
     Type:  defect              |      Status:  new                  
 Priority:  minor               |   Milestone:                       
Component:  MacRuby             |    Keywords:                       
--------------------------------+-------------------------------------------
 This may be a place where we just break with compatibility but if you do:

 macruby -e 'def foo; next; end; puts "hello"'
 unexpected next (LocalJumpError)

 ruby -e 'def foo; next; end; puts "hello"'
 hello

 Since in Ruby that method is never called, the LocalJumpError will never
 surface.  Again, this may be something that is offered as a 'feature'...I
 dunno

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/388>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list