#1125: [BUG] imcc handles backslashes improperly in sub names
----------------------+-----------------------------------------------------
Reporter: pmichaud | Owner: pmichaud
Type: bug | Status: new
Priority: critical | Milestone:
Component: nqp | Version: 1.6.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Sub declarations that contain backslashes in the name aren't processed
correctly. Here's a demonstration script:
{{{
$ cat z.pir
.sub main
say "xyz:<\" \">"
.const 'Sub' $P0 = 'foo'
say $P0
say ""
say "xyz:<\\>"
.const 'Sub' $P1 = 'bar'
say $P1
.end
.sub "xyz:<\" \">" :subid('foo')
say "xyz-quote"
.end
.sub "xyz:<\\>" :subid('bar')
say "xyz-backslash"
.end
$ ./parrot z.pir
xyz:<" ">
xyz:<\" \">
xyz:<\>
xyz:<\\>
$
}}}
The strings for the subnames should end up having the save value as the
printed strings above them.
Pm
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1125>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets