oopsie that paragraph should have been before the other one
This commit is contained in:
parent
d5b91b7fd2
commit
9535f8c6ab
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
@ -31,13 +31,6 @@ To call a method, just write it after the object:
|
|||
;; => (method object args...)
|
||||
```
|
||||
|
||||
Slot accessors, and other methods that don't take additional arguments, can be
|
||||
written without enclosing parentheses:
|
||||
``` common-lisp
|
||||
[object get-something]
|
||||
;; => (get-something object)
|
||||
```
|
||||
|
||||
Under the hood, this just passes `object` as the first argument to `method`, so
|
||||
you can do stuff like this (I won't kinkshame you, but your coworkers might):
|
||||
```common-lisp
|
||||
|
@ -46,6 +39,13 @@ you can do stuff like this (I won't kinkshame you, but your coworkers might):
|
|||
;; => (setf (slot-value object 'slot-name) value)
|
||||
```
|
||||
|
||||
Slot accessors, and other methods that don't take additional arguments, can be
|
||||
written without enclosing parentheses:
|
||||
``` common-lisp
|
||||
[object get-something]
|
||||
;; => (get-something object)
|
||||
```
|
||||
|
||||
To access slots directly, use the `:slot` keyword:
|
||||
``` common-lisp
|
||||
[object :slot slot-name]
|
||||
|
|
Loading…
Reference in a new issue