diff options
Diffstat (limited to 'def.lisp')
-rw-r--r-- | def.lisp | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -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 |