Re: Implementation (simple!) operator overloading

From: Date: Mon, 10 Jul 2000 08:24:09 +0000
Subject: Re: Implementation (simple!) operator overloading
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24004@lists.php.net to get a copy of this message
> Well actually, you can do some funny stuff > adding and substracting (property) strings.. > > ($object->string = $object - 10) > (I'm kinda working on the $object -= 10; ) Funny being the right term here. Without some extensive context, this doesn't (intuitively) mean anything at all to me. Even in an 'obvious' case like $object being, e.g., a date, what does '10' mean? Days? Seconds? > Anyway, I see there isn't much interest for it, so it was a nice > exercise anyways.. I'm interested in improving PHP's OO capabilities > but I get the feeling OO is not really wanted in PHP by the developers > in here, this true? I like OO capabilities in PHP, am using them more and more. But operator overloading != OOP. Emile

« previous php.dev (#24004) next »