#654: [bug] Parrot named arguments choke on unicode names
----------------------+-----------------------------------------------------
 Reporter:  pmichaud  |       Owner:       
     Type:  bug       |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  none      |     Version:  1.1.0
 Severity:  medium    |    Keywords:       
     Lang:            |       Patch:       
 Platform:            |  
----------------------+-----------------------------------------------------
 Named arguments in Parrot don't appear to accept unicode identifiers.
 Here's a test program:

 {{{
 $ cat x.pir
 # Perl 6:   foo(ä => 1);
 .sub 'main' :main
     'foo'(1 :named(unicode:"\x{e4}"))
 .end

 # Perl 6:  sub foo(:$ä) { say "ok $ä"; }
 .sub 'foo'
     .param int x :named(unicode:"\x{e4}")
     print "ok "
     say x
 .end

 $ ./parrot x.pir
 error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC
 ('unicode:"\x{e4}"')
         in file 'x.pir' line 3
 error:imcc:syntax error, unexpected USTRINGC, expecting STRINGC
 ('unicode:"\x{e4}"')
         in file 'x.pir' line 8
 $
 }}}

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

 This fix is needed for unicode named arguments in Rakudo -- see RT #65512
 .

 Pm

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/654>
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