[BioCocoa-Dev] Project Update...cvs struggle

Charles PARNOT charles.parnot at stanford.edu
Wed Mar 23 10:30:33 EST 2005


At 6:07 AM -0500 3/23/05, Koen van der Drift wrote:
>On Mar 23, 2005, at 3:15 AM, Charles PARNOT wrote:
>
>>I added the symbol set code to the BCAbstractSequence and subclasses. The code is much simpler as a result... BCSequence still needs a little bit of work.
>>
>
>Very nice. I spotted this part:
>
>	for (i=0;i<n;i++) {
>		unichar aChar=[aString characterAtIndex:i];
>		if (aSymbol=[aSet symbolForChar:aChar])
>			[anArray addObject:aSymbol];
>	}
>
>
>Shouldn't that be
>
>		if (aSymbol == [aSet symbolForChar:aChar])  ?
>
>- Koen.

no, because the set returns nil in the symbol is not in it. Just like 'objectForKey:' (NSDictionary) or 'member:' (NSSet).

charles
-- 
Help science go fast forward:
http://cmgm.stanford.edu/~cparnot/xgrid-stanford/

Charles Parnot
charles.parnot at stanford.edu

Room  B157 in Beckman Center
279, Campus Drive
Stanford University
Stanford, CA 94305 (USA)

Tel +1 650 725 7754
Fax +1 650 725 8021



More information about the Biococoa-dev mailing list