<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>Execute the following piece of code:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"-------------------------------------------------------------------"</DIV><DIV>|stream stream2|</DIV><DIV>stream := WriteStream with: 'a test '.</DIV><DIV>stream reset.</DIV><DIV>stream nextPutAll: 'to test'.</DIV><DIV>self assert: [stream contents = 'to test'].</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"On the following line, you can remove 'copy'"</DIV><DIV>"the problem is present without. It's here to prevent"</DIV><DIV>" the streams from using the same collection"</DIV><DIV>"because the compiler tries to avoid creating 2 identical"</DIV><DIV>"strings"</DIV><DIV>stream2 := WriteStream with: 'a test ' copy.</DIV><DIV>stream2 nextPutAll: 'to test'.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"This assert passes but this is abnormal"</DIV><DIV>self assert: [stream2 contents = 'to testto test'].</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>"This assert pass and this is abnormal too"</DIV><DIV>"because the strings MUST be equal !!"</DIV><DIV>self assert: [stream2 contents ~= 'a test to test']</DIV><DIV>"-------------------------------------------------------------------"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>On my image, all the 3 tests pass. This is completely abnormal in my opinion.</DIV><DIV>In the second test, where does 'to testto test' come from ???</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>VM:</DIV><DIV>Squeak VM version: 3.9-8 #2 Tue Oct 10 21:41:34 PDT 2006 gcc 4.0.1</DIV><DIV>Built from: Squeak3.9alpha of 4 July 2005 [latest update: #7021]</DIV><DIV>Build host: Darwin margaux 8.8.0 Darwin Kernel Version 8.8.0: Fri Sep  8 17:18:57 PDT 2006; root:xnu-792.12.6.obj~1/RELEASE_PPC Power Macintosh powerpc</DIV><DIV>default plugin location: /usr/local/lib/squeak/3.9-8/*.so</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Image: squeak-dev-76</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I will try with other images and the new compiler and let you know.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Can you test with your system please and let us know?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Bye</DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV>Damien Cassou</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN> </DIV><BR></BODY></HTML>