Skip to content

Instantly share code, notes, and snippets.

@ianb
Created November 28, 2012 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ianb/4162673 to your computer and use it in GitHub Desktop.
Save ianb/4162673 to your computer and use it in GitHub Desktop.
smalltalk introspection?
Object extend [
makeAdder: value [
^ [ :x | x + value]
]
].
closure := Object new makeAdder: 5.
"Now: how to you inspect the closure object to reveal that x == 5 ?"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment