Ticket #216 (closed bug: fixed)
can't override the RPA HLL map from PIR?
| Reported by: | coke | Owned by: | whiteknight |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | imcc | Version: | |
| Severity: | high | Keywords: | tcl blocker |
| Cc: | Language: | ||
| Patch status: | Platform: | all |
Description (last modified by coke) (diff)
tcl currently subclasses ResizablePMCArray in a PMC, so that this:
.HLL 'Tcl' .namespace [] .sub '&list' .param pmc argv :slurpy .return(argv) .end
when invoked, is given an argv of type TclList instead of ResizablePMCArray
Trying to convert that PMC to a PIR subclass, I find I can't get that override working. Here's some sample PIR to demonstrate the problem:
.HLL 'Foo'
.HLL_map 'ResizablePMCArray' = 'RPA'
.sub main
$P1 = get_class 'ResizablePMCArray'
$P0 = subclass $P1, 'RPA'
joe('a','b','c')
.end
.sub joe
.param pmc argv :slurpy
$S0 = typeof argv
say $S0
.end
That prints out ResizablePMCArray instead of RPA.
Change History
Note: See
TracTickets for help on using
tickets.
