Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14591 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18307 invoked by uid 1010); 3 Feb 2005 19:58:59 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18285 invoked from network); 3 Feb 2005 19:58:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2005 19:58:59 -0000 X-Host-Fingerprint: 212.204.192.51 jdi.jdimedia.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([212.204.192.51:48085] helo=jdi.jdimedia.nl) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 1E/9A-10528-28282024 for ; Thu, 03 Feb 2005 14:58:58 -0500 Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j13JwtrY002184 for ; Thu, 3 Feb 2005 20:58:55 +0100 Received: from jdi.jdimedia.nl ([127.0.0.1]) by localhost (jdi.jdimedia.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 30252-09-3 for ; Thu, 3 Feb 2005 20:58:55 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by jdi.jdimedia.nl (8.12.11/8.12.11) with ESMTP id j13Jwgew002123; Thu, 3 Feb 2005 20:58:43 +0100 Date: Thu, 3 Feb 2005 20:58:42 +0100 (CET) X-X-Sender: derick@localhost To: Stanislav Malyshev cc: Pierre-Alain Joye , internals@lists.php.net, Terje =?ISO-8859-1?B?U2xldHRlYvg=?= In-Reply-To: Message-ID: References: <5.1.0.14.2.20050201111730.0299da70@localhost> <20050203122955.292e6da9@localhost.localdomain> <02da01c50a13$93728720$a900000a@adstate.local> <20050203195911.512edfd9@localhost.localdomain> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at jdimedia.nl Subject: Re: [PHP-DEV] [Operators overloading] PHP 5.1 From: derick@php.net (Derick Rethans) On Thu, 3 Feb 2005, Stanislav Malyshev wrote: > PJ>>$b->a++; gives tmp = a; tmp = tmp+1; b->a = tmp; > PJ>> > PJ>>In my example (a date object, day being 31), at this I do not know > PJ>>if one is assigning 32 to the property or if it's the result of > PJ>>incrementation (or decrementation from 1 to 0). > > nor manipulating properties directly :) I know you put a :) there, but if you really mean it then you should NOT be using PHP! Reason: PHP isn't about OO cosyness - it's about solving a Web problem. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org