#730: [bug]  IMCC chokes on unicode strings as method call names
----------------------+-----------------------------------------------------
 Reporter:  pmichaud  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  imcc      |     Version:  1.2.0
 Severity:  medium    |    Keywords:       
     Lang:  perl6     |       Patch:       
 Platform:            |  
----------------------+-----------------------------------------------------
 IMCC doesn't appear to accept unicode strings as method call names.
 Here's an example:

 {{{
 $ cat x.pir
 .sub 'main' :main
     $P0 = newclass 'Foo'
     $P1 = new $P0
     $S0 = unicode:"foo\x{b1}"
     $P1.$S0()
     $P1.unicode:"foo\x{b1}"()
 .end


 .namespace ['Foo']
 .sub unicode:"foo\x{b1}" :method
     say "ok"
 .end

 $ ./parrot x.pir
 error:imcc:syntax error, unexpected USTRINGC ('unicode:"foo\x{b1}"')
         in file 'x.pir' line 6
 $
 }}}

 As with TT #575 and #654, it's possible that all that is needed here is an
 update to IMCC.

 This fix is needed for unicode method calls in Rakudo.

 Pm

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/730>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to