Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70932 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 57009 invoked from network); 30 Dec 2013 21:36:41 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Dec 2013 21:36:41 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.217.174 mail-lb0-f174.google.com Received: from [209.85.217.174] ([209.85.217.174:35014] helo=mail-lb0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BB/74-33070-867E1C25 for ; Mon, 30 Dec 2013 16:36:41 -0500 Received: by mail-lb0-f174.google.com with SMTP id y6so5761415lbh.5 for ; Mon, 30 Dec 2013 13:36:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=G7ubmrGAlAb8W4tWo7afpn/xP0i7nRgI2SitheklcJc=; b=0dTGO4x0mzRZ6M1JCIZXBRbb9XVkaf6DYhVV9cmVNE9ED/1XTckSe/Gktb21WTNBZf +/IVkjsi1jMxtjlglApOMy9FbdaJgZvcigzitUppy+IT+Dasmmq4VqFXTEiUCiwaz52/ TsvymP6uRiYPhuAZDI2b7KEbqYf0rZ8+DsMVD/XU9kyFcK1rCdAms0okIrdgin5AIL5B Rzf8VZyAHkSCm9hwdekUI9o+PxGvY1x9LR5+yW9KuvareNlgE9YCbbeSi7O3fMhpv4T+ UQTkgC1/VD9MnR8l3gaTTWsjD3CPS5JjGe/EcSN90UE6KL7mvD6PloTxtaMQmfnQr6gF JUtw== X-Received: by 10.112.218.74 with SMTP id pe10mr26342497lbc.19.1388439397268; Mon, 30 Dec 2013 13:36:37 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.6.68 with HTTP; Mon, 30 Dec 2013 13:35:57 -0800 (PST) In-Reply-To: <52C1E61B.8050404@sugarcrm.com> References: <52C1DB86.1030909@sugarcrm.com> <52C1E61B.8050404@sugarcrm.com> Date: Tue, 31 Dec 2013 06:35:57 +0900 X-Google-Sender-Auth: 5D8teRxoViy_VsIKYbWiGUnVZ4M Message-ID: To: Stas Malyshev Cc: Nikita Popov , "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c3c67811035004eec73df5 Subject: Re: [PHP-DEV] GMP object and is_scalar() From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c3c67811035004eec73df5 Content-Type: text/plain; charset=UTF-8 Hi Stas, On Tue, Dec 31, 2013 at 6:31 AM, Stas Malyshev wrote: > > Since this (GMP numbers work like normal numbers) is new feature, we > > may choose better option. > > I think you're taking it way too far. GMP numbers may support some > functions that scalars support, but that does not mean every function - > especially functions with are *specifically designed* to distinguish > scalars from objects - would do the same thing for them as for scalars. > If you're interested in their "numeric" properties - i.e. adding them, > multiplying them, etc. - fine, they work that way. But if you "pop the > hood" and look inside - no, they should not be scalars inside, because > they are not. I agree with your opinion in general. How about to introduce scalar object that is evaluated as scalar? It would be useful in user land also. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c3c67811035004eec73df5--