At 10:20 AM +1100 10/7/09, clancy_1@xxxxxxxxxxxx wrote:
On Tue, 6 Oct 2009 14:08:14 -0400, tedd.sperling@xxxxxxxxx (tedd) wrote:
At 10:48 AM -0300 10/6/09, Martin Scotta wrote:
No matter how silly it can looks like (a = a++) it is still completely valid
code and it SHOULD run without problems.
Yeah, it's a valid as:
$a = $a;
and does the same thing, which is nothing.
No; it's worse, because it can be interpreted in two different ways,
which is demonstrated
by the fact that it gives different results in different languages.
That's true for different languages, but I was talking about php. In
some languages even the variable $a wouldn't be legal.
However, you are correct that the confusion such assignments would
raise would create problems as well.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php