Skip to content

Instantly share code, notes, and snippets.

@jamesladd
Last active January 31, 2017 21:14
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 jamesladd/1ca37bf18116af59babc9e371dcf24b9 to your computer and use it in GitHub Desktop.
Save jamesladd/1ca37bf18116af59babc9e371dcf24b9 to your computer and use it in GitHub Desktop.
Object.st snippet
PrimObject subclass: #Object.
"category: accessing"
- class
"Primitive. Answer the object which is the receiver's class."
JVM primitive: 111.
- yourself
^ self.
- at: index
"Answer the value of the indexed instance variable of the receiver whose index is the argument, index. If the
receiver does not have indexed variables, or if the argument is greater than the number of indexed variables, then
report an error."
JVM primitive: 144.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment