Re: When is "z" != "z" ?
| From: | Robert Cummings | Date: | Sun, 04 Jun 2006 20:54:34 +0000 |
| Subject: | Re: When is "z" != "z" ? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237379@lists.php.net to get a copy of this message | ||
On Sun, 2006-06-04 at 15:10, Martin Alterisio wrote:
> Still:
> anything < ++anything
> should be true, or at least that's what they taught me on abstract data
> types design, and I think they're right (at least this time)
There's always limitations :)
int main( char *argv[], int argc )
{
int i = 0;
char c = 0x00;
char t = 0x00;
for( i = 0; i < 129; i++ )
{
t = c;
++c;
if( t < c )
{
printf( "Less than!\n" );
}
else
{
printf( "Not less than!\n" );
}
}
return 0;
}
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. |
`------------------------------------------------------------'