#1449: Add support for String PMC in NameSpace::get_pmc_keyed
-----------------------------+----------------------------------------------
Reporter: Austin_Hastings | Owner:
Type: todo | Status: new
Priority: normal | Milestone:
Component: none | Version: 2.0.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-----------------------------+----------------------------------------------
Presently, NameSpace PMCs support keyed_pmc access only for Key PMC types:
{{{
aus...@andlinux:~/kakapo$ cat test.pir
.sub main
$P1 = get_hll_namespace
say "Testing with Key"
$P0 = new 'Key'
$P0 = 'Foo'
$P2 = $P1[$P0] # OKAY
say "Testing with String PMC"
$P0 = new 'String'
$P0 = 'Foo'
$P2 = $P1[$P0] # FAIL
.end
aus...@andlinux:~/kakapo$ parrot test.pir
Testing with Key
Testing with String PMC
Invalid namespace key in get_pmc_keyed_str
current instr.: 'main' pc 22 (test.pir:12)
}}}
Given than NameSpace supports keyed access with keyed_str, it should also
support String PMCs.
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1449>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets