oopsie that paragraph should have been before the other one

This commit is contained in:
~keith 2021-11-25 22:32:33 +00:00
parent d5b91b7fd2
commit 9535f8c6ab
1 changed files with 7 additions and 7 deletions

View File

@ -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]