Re: [Operators overloading] PHP 5.1

From: Date: Thu, 03 Feb 2005 11:29:55 +0000
Subject: Re: [Operators overloading] PHP 5.1
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-14566@lists.php.net to get a copy of this message
On Thu, 3 Feb 2005 11:47:13 +0100 (CET) derick@php.net (Derick Rethans) wrote: > On Thu, 3 Feb 2005, Sebastian Bergmann wrote: > > > Derick Rethans wrote: > > > Use C++/Java if you want this. > > > > Java does not support operator overloading. > > So, that means PHP shouldn't get it either, right? ;-) As I already asked in the past, I'm in favour to have them for intern usage only (understand used by extension). As we already for propoerties read or write. For those who do not know, you have no way to know that you in a ++, -- call. At least for ++,-- and friends. A typical usage could be data that fits in a defined range (ie date/time values). Regards, --Pierre

« previous php.internals (#14566) next »