Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73788 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54607 invoked from network); 24 Apr 2014 22:36:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Apr 2014 22:36:52 -0000 Authentication-Results: pb1.pair.com header.from=park.framework@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=park.framework@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.48 as permitted sender) X-PHP-List-Original-Sender: park.framework@gmail.com X-Host-Fingerprint: 74.125.83.48 mail-ee0-f48.google.com Received: from [74.125.83.48] ([74.125.83.48:46049] helo=mail-ee0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 12/00-54442-30299535 for ; Thu, 24 Apr 2014 18:36:51 -0400 Received: by mail-ee0-f48.google.com with SMTP id b57so2270511eek.35 for ; Thu, 24 Apr 2014 15:36:48 -0700 (PDT) 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=uRSAVdyTJ+R6ZjFjHEp8tQPiIgpI7AmnOJqMCDVqQnE=; b=YC1BI8nimtu50+OSEhhDLmNqnoM0ZRQcuCIlWsNdHtwM+4Mx0f0typhje7gnp6qS5W OHc3TUllKET7/o9aSSEYEUyDXTVc39e0hUTr2Eqqt3ZOv2BiL2OFJpf4IKXEVeoOXQ+M SIULcezNAfXv+JSyJCQpNXzeewQiCpao+D6BPLdQF7H4JnAB9+/h4hlk/mYRp6lPyIKB hU6iGBkRcxLIF2z250ftktoJLiRvalf6P8qTPNIgWJqgwSNDuvTDrFSOgUdPH36nUICA t1UbyojCr2eDqJ4E3iq/PvEWtKFmRNLhjAm7pLL8eKUi6v+3g6GxenAaMxC0K7vhuze1 XwdQ== MIME-Version: 1.0 X-Received: by 10.14.115.195 with SMTP id e43mr168803eeh.76.1398378550278; Thu, 24 Apr 2014 15:29:10 -0700 (PDT) Received: by 10.14.107.199 with HTTP; Thu, 24 Apr 2014 15:29:10 -0700 (PDT) In-Reply-To: <53598346.1010300@sugarcrm.com> References: <53597418.5090605@sugarcrm.com> <53598346.1010300@sugarcrm.com> Date: Fri, 25 Apr 2014 01:29:10 +0300 Message-ID: To: Stas Malyshev Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary=001a11c25170c03efc04f7d16086 Subject: Re: [PHP-DEV] [RFC] Floating Point support in GMP extension From: park.framework@gmail.com (Park Framework) --001a11c25170c03efc04f7d16086 Content-Type: text/plain; charset=UTF-8 Yes agree, it the right thing. In many business calculations implemented pattern Money. If there is a class BCMath or GMPFloat which it is possible to extend, wherein overload operators, will interesting solutions. 2014-04-25 0:33 GMT+03:00 Stas Malyshev : > Hi! > > > How to make PHP userland class, overloading math operators? > > From userland it is impossible, this is why I was talking about what was > done in GMP - converting extension to support operators, on extension > level. > > > -- > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 > --001a11c25170c03efc04f7d16086--