#304: in irb: defining a local variable in a method doesn´t work
------------------------+---------------------------------------------------
 Reporter:  d...@…       |       Owner:  lsansone...@…        
     Type:  defect      |      Status:  new                  
 Priority:  minor       |   Milestone:  MacRuby 0.5          
Component:  MacRuby     |    Keywords:  irb                  
------------------------+---------------------------------------------------

Comment(by lsansone...@…):

 {{{
 $ ./miniruby -e "eval('def test; a=42; p a; end'); test"
 (eval):1:in `test': undefined local variable or method `a' for
 main:TopLevel (NameError)
         -e:1:in `<main>'
 }}}

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

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to