[squeak-dev] Xtreams : first embryonary port on Squeak

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Sun Oct 10 11:05:55 UTC 2010


2010/10/10 Levente Uzonyi <leves at elte.hu>:
> On Sun, 10 Oct 2010, Nicolas Cellier wrote:
>
>>
>> THE STATUS OF TESTS:
>>
>> Tests do not all pass. There seems to be a bug in Squeak
>> #replace:from:to:with: when the replacement is the collection itself,
>> moved to the right (this is with a COG VM).
>
> #replace:from:to:with: is not supposed to work for moves. IIRC the primitive
> version uses memcpy (or strncpy), so moving to the left works just because
> the undelying C function supports it. I used to (ab)use this feature though.
>
>
> Levente
>

OK, since we use memcpy rather than memmove in Squeak VM, I
implemented the trivial work around - move through a motionBuffer
temporary copy.

I now have a single test failing,
XTCollectionWriteStream>>#testReadWriteLargeAmount and this must be
due to my #after:do: simplistic implementation.
Messing with #fork in SUnit TestCase is tricky, and I need help on this point.

Nicolas



More information about the Squeak-dev mailing list