Re: Re: [cc65] declaring variables after code

From: Thomas Giesel <skoe1directbox.com>
Date: 2010-04-23 16:01:03
Nearly correct, but one small mistake:

>You mean something like
>
>  for (int i = 0; i < 99; i++)
>
>?
>
>This is not even allowed in C99 (but in C++, but this is a completely
>different language!)

That's not correct, C99 does allow it.
Refer to 
ISO/IEC 9899:TC2: 6.8.5 Iteration statements
or to the rationale in chapter 6.8.5 of this:
http://www.open-std.org/JTC1/SC22/WG14/www/C99RationaleV5.10.pdf

Regards,

Thomas


----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri Apr 23 16:01:41 2010

This archive was generated by hypermail 2.1.8 : 2010-04-23 16:01:43 CEST