From: Mark Wooding Date: Tue, 23 Jun 2020 09:23:39 +0000 (+0100) Subject: doc/concepts.tex: Add footnote compring Sod and CLOS initarg selection. X-Git-Url: https://git.distorted.org.uk/~mdw/sod/commitdiff_plain/15284d0024dc037fedd3fde53ed4bbe14db9953c doc/concepts.tex: Add footnote compring Sod and CLOS initarg selection. Sod initializes a slot from the most specific initarg supplied; CLOS instead choose the leftmost initarg in the argument list. --- diff --git a/doc/concepts.tex b/doc/concepts.tex index 0533a68..1cf0476 100644 --- a/doc/concepts.tex +++ b/doc/concepts.tex @@ -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 - 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