[MacRuby-devel] [MacRuby] #328: Calling a ObjC-method with a named argument which is a Ruby keyword does not work

MacRuby ruby-noreply at macosforge.org
Wed Apr 21 12:34:47 PDT 2010


#328: Calling a ObjC-method with a named argument which is a Ruby keyword does
not work
------------------------+---------------------------------------------------
 Reporter:  dev@…       |       Owner:  lsansonetti@…        
     Type:  defect      |      Status:  new                  
 Priority:  minor       |   Milestone:                       
Component:  MacRuby     |    Keywords:                       
------------------------+---------------------------------------------------
Changes (by martinlagardette@…):

  * milestone:  MacRuby 0.5 =>


Comment:

 It looks like the parser has a problem with the "'''in'''" keyword:

 {{{
 $> macruby -e "obj.do('a', in: nil)"
 -e:1: syntax error, unexpected keyword_in, expecting ')'
 obj.do('a', in: nil)
               ^
 $> macruby -e "obj.do('a', ia: nil)"
 /Users/naixn/-e:1:in `<main>': undefined local variable or method `obj'
 for main:TopLevel (NameError)
 }}}

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



More information about the MacRuby-devel mailing list