More fast enumeration

2009-01-28 Thread David Chisnall
This patch fixes a bug in the last one (I forgot to set the items pointer) and adds enumeration support to GSArray and GSMutableArray. GSArray just returns a pointer to its contents directly. GSMutableArray has a _version ivar added. This is incremented every time the collection is

Re: More fast enumeration

2009-01-28 Thread Richard Frith-Macdonald
On 28 Jan 2009, at 13:13, David Chisnall wrote: This patch fixes a bug in the last one (I forgot to set the items pointer) and adds enumeration support to GSArray and GSMutableArray. GSArray just returns a pointer to its contents directly. GSMutableArray has a _version ivar added. This