From: Mark Wooding Date: Sat, 27 Jul 2019 13:42:18 +0000 (+0100) Subject: doc/concepts.tex: Mention class-slot initializers; cross-ref to metaclasses. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/997b4d2bc62482fc23121a84f35d106c1c1becad doc/concepts.tex: Mention class-slot initializers; cross-ref to metaclasses. --- diff --git a/doc/concepts.tex b/doc/concepts.tex index 394913c..399b148 100644 --- a/doc/concepts.tex +++ b/doc/concepts.tex @@ -240,6 +240,10 @@ the @|me| pointer: in an initializer for a slot defined by a class $C$, @|me| has type `pointer to $C$'. (Note that the type of @|me| depends only on the class which defined the slot, not the class which defined the initializer.) +A class can also define \emph{class slot initializers}, which provide values +for a slot defined by its metaclass; see \xref{sec:concepts.metaclasses} for +details. + \subsection{C language integration} \label{sec:concepts.classes.c}