gcc: c99-like fast enumeration syntax
1
1 8.9.2 C99-Like Fast Enumeration Syntax
1 --------------------------------------
1
1 A c99-like declaration syntax is also allowed:
1
1 id array = ...;
1
1 for (id object in array)
1 {
1 /* Do something with 'object' */
1 }
1
1 this is completely equivalent to:
1
1 id array = ...;
1
1 {
1 id object;
1 for (object in array)
1 {
1 /* Do something with 'object' */
1 }
1 }
1
1 but can save some typing.
1
1 Note that the option '-std=c99' is not required to allow this syntax in
1 Objective-C.
1