[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] Bug in CollStream-reset or ArrayedCollection-extend?
why do you want to change it? CollStream always begins writing at the beginning of a collection. If you pass it a new collection, it begins writing from the beginning of that.
CollStream is not for appending to collections.
On Nov 21, 2004, at 11:21 AM, Scott Wilson wrote:
On 21 Nov 2004, at 18:58, James McCartney wrote:
Why do you want to remove it?
At the moment *on and on call reset:
<x-tad-smaller> *on { </x-tad-smaller><x-tad-smaller>arg</x-tad-smaller><x-tad-smaller> aCollection;
^</x-tad-smaller><x-tad-smaller>super</x-tad-smaller><x-tad-smaller>.new.on(aCollection);
}
on { </x-tad-smaller><x-tad-smaller>arg</x-tad-smaller><x-tad-smaller> aCollection;
collection = aCollection;
</x-tad-smaller><x-tad-smaller>this</x-tad-smaller><x-tad-smaller>.reset;
}
</x-tad-smaller>
This obliterates the collection you just passed in. So I guess I should change on to call super.reset instead?
S.
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev