Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89986 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99535 invoked from network); 4 Jan 2016 11:48:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2016 11:48:37 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:33990] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A8/A2-01776-11C5A865 for ; Mon, 04 Jan 2016 06:48:34 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id A833210D6CC; Mon, 4 Jan 2016 11:48:30 +0000 (GMT) Date: Mon, 4 Jan 2016 11:48:30 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Sara Golemon cc: PHP internals , patriciotarantino@gmail.com In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] RFC Operator Overloading in Userspace From: derick@php.net (Derick Rethans) On Sat, 2 Jan 2016, Sara Golemon wrote: > Patricio Tarantino has asked me to help him propose Operator > Overloading in PHP 7.1 (based in part on my operator extension in > PECL). I think we can expose this to usespace as magic methods with > very little overhead (the runtime check and dispatch is already there, > after all). > > I do think that the "Future Expansion" section bears following through > with as well, but the basic set of methods already hooked for GMP > would be a nice start. > > https://wiki.php.net/rfc/operator-overloading "Limiting Issue: Greater/Lesser are not distinct" That should be addressed in the engine first too (or with) this change. However, operator overloading... cheers, Derick