Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14577 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43085 invoked by uid 1010); 3 Feb 2005 17:28:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42938 invoked from network); 3 Feb 2005 17:28:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2005 17:28:06 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.4/2.6 Received: from ([80.74.107.235:53359] helo=mail.zend.com) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 5F/8F-29932-22F52024 for ; Thu, 03 Feb 2005 12:28:05 -0500 Received: (qmail 4190 invoked from network); 3 Feb 2005 17:27:57 -0000 Received: from shire.zend.office (10.1.2.160) by internal.zend.office with SMTP; 3 Feb 2005 17:27:57 -0000 Date: Thu, 3 Feb 2005 19:27:57 +0200 (IST) X-X-Sender: frodo@shire.zend.office To: =?iso-8859-1?Q?Terje_Sletteb=F8?= cc: internals@lists.php.net In-Reply-To: <02da01c50a13$93728720$a900000a@adstate.local> Message-ID: References: <5.1.0.14.2.20050201111730.0299da70@localhost> <20050203122955.292e6da9@localhost.localdomain> <02da01c50a13$93728720$a900000a@adstate.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [Operators overloading] PHP 5.1 From: stas@zend.com (Stanislav Malyshev) TS>>(***) This is how it's done in C++ (actually, a dummy int parameter), which TS>>is a bit of a hack, to be able to specify both the pre- and In C++, functions differ by argument. In PHP, they don't. Not to say I view that C++ hack as a kludge which is accepted only because there's no other choice, more or less. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.115