[MacRuby] #388: Exception with next...
#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/>
#388: Exception with next... --------------------------------+------------------------------------------- Reporter: rich@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: minor | Milestone: Component: MacRuby | Resolution: invalid Keywords: | --------------------------------+------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => invalid Comment: This is an expected 1.9 behavior. {{{ $ ruby19 -e 'def foo; next; end; puts "hello"' -e:1: Invalid next -e: compile error (SyntaxError) }}} I note that we should probably use a SyntaxError as 1.9 does. -- Ticket URL: <http://www.macruby.org/trac/ticket/388#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby