#809: Opcode 'isa' does not accept RSA PMC for class
-----------------------------+----------------------------------------------
Reporter: Austin_Hastings | Type: bug
Status: new | Priority: normal
Milestone: | Component: none
Version: 1.3.0 | Severity: medium
Keywords: | Lang:
Patch: | Platform:
-----------------------------+----------------------------------------------
This code does not work:
{{{
find_lex $P95, "node"
$P0 = split '::', "PCT::Node"
isa $I96, $P95, $P0
}}}
It produces an error:
{{{
get_string() not implemented in class 'ResizableStringArray'
}}}
According to Pmichaud, RSA should be a valid parameter type for many of
the class-related opcodes (see #159 for more).
According to me, the default pmc (which is where I suspect a lot of this
windows up relegated) makes no provision for PMC types other than Class.
For now I have a work-around, provided by Pmichaud:
{{{
$P0 = split '::', 'PCT::Node'
$P1 = get_class $P0
$I0 = isa node, $P1
}}}
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/809>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets