[Newbies] storeString vs. printString

Mathieu SUEN mathk.sue at gmail.com
Tue Jul 4 08:17:27 UTC 2006


Hi squeakers,

I have an extremly simple question.

What is the diffrence between #storeString and #printString?

In ArrayTest I suggest to add the following statement:

 self assert: literalArray storeString = '#(1 true 3 #four)'

And it don't pass the test (failure)
This is because the #storOn: don't do the write things (i.e. add a space at
the end of the Array #(1 2 3 ) vs. #(1 2 3).
I think that #printOn: do a better Job. Don't he?

cheers,
Math
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20060704/841b9250/attachment.htm


More information about the Beginners mailing list