Re: wacky object idea

From: Date: Mon, 28 Aug 2000 16:03:58 +0000
Subject: Re: wacky object idea
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.dev 
Request: Send a blank email to php-dev+get-30980@lists.php.net to get a copy of this message
Quoting Andi Gutmans <andi@zend.com>: > We have to think of all the possible contexts we would expect this to work > (I'm sure there are not trivial ones) and then see what happens. Are there any contexts where php doesn't already attempt to convert a variable to the required type? The one sticky thing I can think of is ===, and I think it's fine to say that it'll fail in that case: if ($object == false would do the type conversion (using __boolean_value if it was defined), whereas: if ($object === false) would fail. -chuck -- Charles Hagenbuch, <chuck@horde.org> -- "Alice found a niche in the market for her diabolically malodorous rabbit pellet."

« previous php.dev (#30980) next »