Luke Palmer <[EMAIL PROTECTED]> wrote:
> There's a pretty bad problem with calling the vtable proxy methods with
> keys that aren't constant.  Best illustrated by example:

> .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

Reply via email to