Last active
January 31, 2017 21:14
-
-
Save jamesladd/1ca37bf18116af59babc9e371dcf24b9 to your computer and use it in GitHub Desktop.
Object.st snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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