summaryrefslogtreecommitdiff
path: root/def.lisp
diff options
context:
space:
mode:
authorcolin <colin@cicadas.surf>2024-11-30 08:05:46 -0800
committercolin <colin@cicadas.surf>2024-11-30 08:05:46 -0800
commitf977f0ab9a1e35bb854d2e228c5e581a6ef50f4a (patch)
tree88234700713f8f965c393bb1c6498f0aa44dad33 /def.lisp
parentc1029b0f740e09ccac65ab97b3bf9e06bd39e9bd (diff)
Update readme
Diffstat (limited to 'def.lisp')
-rw-r--r--def.lisp15
1 files changed, 8 insertions, 7 deletions
diff --git a/def.lisp b/def.lisp
index 055a30b..6a2505c 100644
--- a/def.lisp
+++ b/def.lisp
@@ -54,12 +54,13 @@ above might have been written:
Which would have expanded the same way, but with documentation on each
slot definition.
-There are a few flag style slot definition arguments. Flags do not
-have an value after them, all flags must come before other options. Flags are:
- :prefix - prefix the accessor by the class name
- :ro - only define a reader
- :wo - only define a writer
- :noarg - means no initarg
+There are a few flag style slot options. Flags do not have an value
+after them, ALL FLAGS MUST COME BEFORE OTHER OPTIONS. Flags are:
+ :prefix - prefix the accessor by the class name
+ :ro - only define a reader
+ :wo - only define a writer
+ :noarg - means no initarg
+ :required - the slot MUST have an initial value
By default an accessor is defined.
@@ -140,7 +141,7 @@ E.g.
(defmacro typed (name (&rest lambda-list) -> return-type &body body)
"A typed function is one for which every parameter is typed, a return type is
-declared. DEF:FAST generates an optimized DEFUN.
+declared. DEF:TYPED generates an optimized DEFUN.
Each positional parameter must be a list (VAR TYPE) &KEY &REST and
&OPTIONAL arguments all look like (VAR TYPE . MORE) where MORE is