Leopold Toetsch <[EMAIL PROTECTED]> wrote:

I've implemented this part now:

> For Python, Lisp and probably more HLLs the same is of course needed for
> unary opcodes:

>    abs Px, Py           # use existing abs, Px exists
>    Px = n_abs Py        # create new abs result PMC

> This is of course just a fancy way to write

>    n_abs Px, Py         # same

> but it makes it more clear that a new value is assigned.

> For the existing unary opcodes with PMC variants:

>    abs, neg, not, nots (don't we have more?)

Actually the ops are:

  abs, neg, not, bnot, bnots

and new:

  n_abs, n_neg, n_not, n_bnot, n_bnots

> the same scheme as to infix opcodes apply: if the passed in C<dest> PMC
> is NULL, a new result PMC is created. I don't know, if we should have
> distinct inplace variants too:

>    abs Px               # VTABLE_i_absolute()

Done too plus a few missing unary inplace variants.

leo

Reply via email to