Re: minimum compiler requirements - fast enumeration
Frederik Seiffert <[email protected]> Mon, 31 Jan 2022 12:23:44 +0100
| Newsgroups | gmane.comp.lib.gnustep.devel |
|---|---|
| Message-ID | <[email protected]> |
I’d be all for this. FWIW there’s also the FOR_IN/END_FOR_IN macros in GSFastEnumeration.h, which use fast enumeration with Clang and seem to emulate it with other compilers. > Am 31.01.2022 um 10:40 schrieb Richard Frith-Macdonald <[email protected]>: > > A few years ago we declared gcc-4.0 as our minimum supported compiler version. > Does anyone know if gcc-4.0 support for fast enumeration actually works? > If it does, it would be good to start using fast enumeration internally (in gnustep-base for instance). > I'd like to do that as it gives us not only more readable/maintainable code, but also faster code in almost all cases. > > > >