Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70371 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6651 invoked from network); 25 Nov 2013 07:22:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Nov 2013 07:22:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=tjerk.meesters@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tjerk.meesters@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.44 as permitted sender) X-PHP-List-Original-Sender: tjerk.meesters@gmail.com X-Host-Fingerprint: 209.85.212.44 mail-vb0-f44.google.com Received: from [209.85.212.44] ([209.85.212.44:59910] helo=mail-vb0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/11-34377-5AAF2925 for ; Mon, 25 Nov 2013 02:22:14 -0500 Received: by mail-vb0-f44.google.com with SMTP id w20so2572152vbb.3 for ; Sun, 24 Nov 2013 23:22:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YS47JjXxSlmFT512Y2jXiupYfV+Ba2h2AnnP7PrBtck=; b=lZyEhRCdKsyCW5J8vRnGB0C/6GExV7ZjZvaA0K9DBamhqnflMG2x4sUHN7To35fbKF 4Bdh+5OM8byvEcJQUKLW7K/oNfJwbGsZzG8sXyRM364+dMJ1OZluFk/UxL5HItz0MDUw +ATAchSYOPAAMH8AF6YioliXXqyQpOEHMJ03V0VwSIcKLfD+qBMiulkm9kd3skmRuoQT 3K3hs0I6kxvpomR9ozz8B99Rq25gYziwNhvdvFTLwdnevBF3HXTf5883ByYUbJBHAbv7 lSvIlxuwRqUy7A3qCvzgHCoNJ88rs4MuyT+yKB5Ho5e8c0byDoQOV4qubnDqaNVMFsjX SWOA== MIME-Version: 1.0 X-Received: by 10.220.86.69 with SMTP id r5mr25092589vcl.9.1385364131578; Sun, 24 Nov 2013 23:22:11 -0800 (PST) Received: by 10.58.128.33 with HTTP; Sun, 24 Nov 2013 23:22:11 -0800 (PST) In-Reply-To: References: Date: Mon, 25 Nov 2013 15:22:11 +0800 Message-ID: To: Galen Wright-Watson Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c1ff44f28a3c04ebfb3897 Subject: Re: [PHP-DEV] Re: rfc: pow-operator From: tjerk.meesters@gmail.com (Tjerk Meesters) --001a11c1ff44f28a3c04ebfb3897 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Nov 25, 2013 at 3:16 PM, Galen Wright-Watson wrote: > On Sun, Nov 24, 2013 at 11:01 PM, Tjerk Meesters > wrote: > > > On Mon, Nov 25, 2013 at 8:38 AM, Tjerk Meesters < > tjerk.meesters@gmail.com > > >wrote: > > > > > Hi Pierre, > > > > > > > > > On Sun, Nov 24, 2013 at 11:56 PM, Pierre Joye > >wrote: > > >> [...] > > >> Should it not be possible to do something similar than isset? Changing > > >> pow from a function to operator? The big advantage is that any > > >> existing code will benefit from it without code changes. > > >> > > > > > > Speeding up existing code sounds like a very good idea actually :) I'll > > > look into this. > > > > > > > Following up on this; I've turned pow() into a language construct now. > > [...] > > > Does that mean that 'pow', like 'empty' and 'isset', can't be passed as a > callback? > That sure is a good reason not to remove it from `ext/standard/math.c` :) this currently works: $ sapi/cli/php -r "echo call_user_func('pow', 2, 3);" 8 -- -- Tjerk --001a11c1ff44f28a3c04ebfb3897--