Re: [cc65] declaring variables after code

From: Spiro Trikaliotis <ml-cc651trikaliotis.net>
Date: 2010-04-23 17:01:28
Hello Thomas,

* On Fri, Apr 23, 2010 at 04:01:03PM +0000 Thomas Giesel wrote:
> 
> Nearly correct, but one small mistake:
[...]
> >  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.

You are right, I was wrong. I always try to avoid it in C code that I
forgot that C99 actually allows it.

Regards,
Spiro.

-- 
Spiro R. Trikaliotis                              http://opencbm.sf.net/
http://www.trikaliotis.net/                     http://www.viceteam.org/
----------------------------------------------------------------------
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 20:18:15 2010

This archive was generated by hypermail 2.1.8 : 2010-04-23 20:18:17 CEST