-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ethan Grammatikidis wrote:
> I just don't like parsing a for statement, it's rarely clear and usually ugly 
> to my eyes.

Writing a parser to parse a for statement is slightly more involved as
well.  However I was commenting on how the compiler seems to handle a
do/while properly so it might be possible to get for- and while-loops to
avoid reporting the false warning with some effort.

I still use for(;;) instead of while(1) ever since I saw compilers emit
machine code that moved $1 into a register followed by a compare.  Most
modern compilers do no do this anymore but old habits die hard.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkqB7csACgkQl3JZTBu3/9lgjACgsrd39mxz4Ak6x9cY4iUeK0+A
gnUAnRwbVd/6nkxLW5dtxeoxJnS+Njf/
=Rkj5
-----END PGP SIGNATURE-----

Reply via email to