This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: C/ObjC: Fast enumeration for Objective-C
- From: "Nicola Pero" <nicola dot pero at meta-innovation dot com>
- To: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>
- Date: Mon, 4 Oct 2010 13:12:24 +0200 (CEST)
- Subject: RE: C/ObjC: Fast enumeration for Objective-C
- References: <1286145057.23826289@192.168.2.229>
> * decided that, unlike in the Apple compiler, "for (id object in collection)" is only available
> when using -std=c99.
By the way, I have a slight preference for this solution as it makes the code simpler (and it
makes more sense to me) but I don't have a strong opinion; if someone was to produce a patch
to have the compiler accept that syntax even without -std=c99, for compatibility with Apple
compilers, it would be fine by me. ;-)
Thanks