Hi Nikita,

The patch looks quite good.
However, it must slow down each comparison operator (even if it compares
two integers).

I would suggest overloading of CMP operator instead of separate <, <=, ==,
!=, >, >=.

Also it may make sense to think about overloading of unary operators to
provide a solid decision.

In case you think about user-level operator overloading in the future (that
may make sense :) it would be better to design them all together.

Thanks. Dmitry.


On Sun, May 12, 2013 at 7:25 PM, Nikita Popov <nikita....@gmail.com> wrote:

> Hi internals!
>
> https://wiki.php.net/rfc/operator_overloading_gmp
>
> This RFC proposes to add operator overloading for INTERNAL classes.
> Furthermore it exemplarily implements the new API for GMP.
>
> Thanks,
> Nikita
>

Reply via email to