doc/concepts.tex: Add footnote compring Sod and CLOS initarg selection.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 23 Jun 2020 09:23:39 +0000 (10:23 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 23 Jun 2020 09:23:39 +0000 (10:23 +0100)
Sod initializes a slot from the most specific initarg supplied; CLOS
instead choose the leftmost initarg in the argument list.

doc/concepts.tex

index 0533a68..1cf0476 100644 (file)
@@ -1072,7 +1072,10 @@ follows.
   initializers, \emph{and} the sender supplied a value for one or more of the
   corresponding effective initargs, then the value of the most specific such
   initarg is stored in the slot.  (For this purpose, initargs defined earlier
   initializers, \emph{and} the sender supplied a value for one or more of the
   corresponding effective initargs, then the value of the most specific such
   initarg is stored in the slot.  (For this purpose, initargs defined earlier
-  in a class definition are more specific than initargs defined later.)
+  in a class definition are more specific than initargs defined
+  later.)\footnote{%
+    This is very different from the CLOS behaviour, in which a slot is
+    initialized from the first applicable initarg in the argument list.}
 
 \item Otherwise, if there are any slot initializers defined which include an
   initializer expression, then the initializer expression from the most
 
 \item Otherwise, if there are any slot initializers defined which include an
   initializer expression, then the initializer expression from the most