.sub _main
newclass $P0, "Foo"
find_type $I0, "Foo"
new $P1, $I0
$I1 = $P1["foo"]
$S0 = "foo"
$I1 = $P1[$S0]
end
.end
.namespace ["Foo"]
.sub __get_integer_keyed
.param pmc key
print "Key = "
print key
print "\n"
.return(0)
.end
The output is:
Key = foo
Key =
Thanks,
Luke
> .sub _main
> newclass $P0, "Foo"
>
> find_type $I0, "Foo"
> new $P1, $I0
> $I1 = $P1["foo"]
> $S0 = "foo"
> $I1 = $P1[$S0]
Oouch. The key is e.g. S30. The method is run in a fresh register frame
and S30 isn't passed on to that runloop only the key PMC, which
references S30.
C<runops_args> in inter_run.c has to check for keys that contain
registers and pass these registers on to the method.
> Thanks,
> Luke
leo
Fixed. Thanks for reporting
leo