Re: [RFC] Internal operator overloading and GMP improvements

From: Date: Mon, 13 May 2013 05:49:06 +0000
Subject: Re: [RFC] Internal operator overloading and GMP improvements
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-67412@lists.php.net to get a copy of this message
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.ppv@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 >

« previous php.internals (#67412) next »