using collections
Brian T Rice
water at tunes.org
Mon May 5 16:20:32 PDT 2003
On Mon, 5 May 2003, Paul Dufresne wrote:
> I was to write about it:
> In c@(Set traits) scanFor: obj, of set.slate, I changed
> end: c array size.
> to become: end: c array size -1.
>
> But there was still a problem when the array doubles in size:
Okay, so elements aren't being copied into the new array. Would you mind
just saying this instead of giving us a 40-line session log? :)
I discovered that the grow method was checking ifNil: on the elements
before adding them instead of ifNotNil:, so the elements are being added
instead of the Nil's. Also the loop logic in scanFor: was further adjusted
to prevent array indexing errors.
--
Brian T. Rice
LOGOS Research and Development
mailto:water at tunes.org
http://tunes.org/~water/
More information about the Slate
mailing list