Re: When is "z" != "z" ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2006-06-06 at 09:46, Martin Alterisio wrote:
> 2006/6/6, Robert Cummings <robert@xxxxxxxxxxxxx>:
>
> > In C++ they do leave it to the coder, and well, we all know what a mess
> > it can be deciphering overloaded operators in C++ (or maybe we ALL
> > don't). At any rate, the PHP overlords made a choice, and IMHO the best
> > choice. For such a fringe issue I don't see what the argument is all
> > about. If you want the functionality you get in C by incrementing a
> > char, then use the chr() function on an integer.
> >
> >
> You're right about ++ operator not to be considered a math operator, my
> mistake. What I should have said is that the usual connotation and expected
> behaviour of ++ and the comparison operators is to give iteration
> capabilities to a certain data type, as used in a for statement. For that to
> happen certain constrains must be true for these operators, one of them
> being: any < ++any, which is not true for the way these operators behave in
> php.

You must have missed this post:

http://marc.theaimsgroup.com/?l=php-general&m=114945456908350&w=2

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux