Skip to content

Instantly share code, notes, and snippets.

@seandenigris
Created December 4, 2011 18:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seandenigris/1430993 to your computer and use it in GitHub Desktop.
Save seandenigris/1430993 to your computer and use it in GitHub Desktop.
Pharo Smalltalk: Quick and Dirty Serialization Example
"There are generally better ways (e.g. Ramon Leon's Simple Image-based Persistence), but this is as simple as it gets."
object := Morph new
color: Color white;
extent: 500@500.
serialized := object storeString.
(Compiler evaluate: serialized) openInWorld.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment