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

Re: [sc-dev] Bug in CollStream-reset or ArrayedCollection-extend?

On Nov 21, 2004, at 10:24 AM, Scott Wilson wrote:

Discovered this using CollStream:

<x-tad-smaller> reset { </x-tad-smaller><x-tad-smaller>super</x-tad-smaller><x-tad-smaller>.reset; collection = collection.extend(0) }

I'm not sure what this extend is there for, but it returns an empty array.

it makes the collection empty so you can begin writing in it again. this is what it should do.

The size arg in ArrayedCollection-extend seems to indicate the final size, so I think this is not unreasonable behaviour, but I thought I should check.

Should I remove CollStream.reset?

Why do you want to remove it?