From f977f0ab9a1e35bb854d2e228c5e581a6ef50f4a Mon Sep 17 00:00:00 2001 From: colin Date: Sat, 30 Nov 2024 08:05:46 -0800 Subject: Update readme --- def.lisp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'def.lisp') 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 -- cgit v1.2.3