[GemStone-Smalltalk] #printString [was Re: first: / last:]

Richard Sargent via GemStone-Smalltalk gemstone-smalltalk at lists.gemtalksystems.com
Tue Sep 30 10:13:13 PDT 2014


Gemstone/S mailing list wrote
> Array>>storeString should avoid the truncation

That's true, but it's also not portable between GS and the client
Smalltalks. GemStone's #storeString is not readily comprehensible to human
readers and cannot be understood by VW or VA without quite a bit of work.

e.g.
(PassiveObject newWithContents: '^610^Array(4 ""Symbol(3 abc 123 Object(""
SymbolAssociation(
"key"?2 6 answer "value"42 ""

') activate



I am partial to the practice of implementing your own #storeOn: methods to
emit the necessary, readable Smalltalk code to recreate the object
instances. Of course, recursive references are problematic.




--
View this message in context: http://forum.world.st/first-last-tp4778749p4781570.html
Sent from the Gemstone/S mailing list archive at Nabble.com.


More information about the GemStone-Smalltalk mailing list