On 2012-06-06, at 08:27, Nicolas Cellier wrote:
The assumption was that a Smalltalk literal would print itself as a Smalltalk literal.
yeah I know, that IS a somehow a nice property :)
I can't tell if this is a vital feature, and we also have storeOn:...
exactly. funnily I found a few bugs in storeOn:/printOn: methods by changing the string behavior
But I can tell you're gonna break a lot of expectations. actually that will be mostly on user-side. in my test-image I had to fix a couple of tests but it perfectly keeps on working :)
What are you looking for? Something like C++stream << aString ?
well I find it a bit strange that String and Symbol behave different than all the other classes when it comes to printing. E.g. whenever you change an inst-var from String/Symbol to another class you'll have to adapt the #printOn: methods :)
Keith Hodge added such support
Stream>> << items items putOn: self. ^ self
Stream>>putOn:aStream ^aStream nextPutAll: self.
Or is it something else?
Nicolas