Re: [Operators overloading] PHP 5.1
| From: | Derick Rethans | Date: | Thu, 03 Feb 2005 19:58:42 +0000 |
| Subject: | Re: [Operators overloading] PHP 5.1 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14591@lists.php.net to get a copy of this message | ||
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