gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More fast enumeration


From: Richard Frith-Macdonald
Subject: Re: More fast enumeration
Date: Wed, 28 Jan 2009 13:31:51 +0000


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 is incremented every time the collection is mutated. This allows the caller to check if the collection has changed between invocations and throw an exception if it has (this is done by calling objc_collectionMutation() which is not yet implemented on the GNU runtime).

Thanks ... I added that patch to svn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]