X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/e0808c472145fc81e52898bc9ac289e10c4f4f41..e2838dc5e1dbdc1558d3ec225fbc9fdd581b5b26:/doc/meta.tex diff --git a/doc/meta.tex b/doc/meta.tex index 52a89cf..7de1fbe 100644 --- a/doc/meta.tex +++ b/doc/meta.tex @@ -29,10 +29,11 @@ \section{Base metaobject classes} \label{sec:meta.classes} \begin{describe}{cls} - {sod-class () \\ \ind - \&key \=:name :nick :location :pset \+ \\ - :superclasses :link :metaclass \\ + {sod-class () \\ \ind + \&key \=:name :nick :location :pset \+\\ + :superclasses :link :metaclass \\ :slots :instance-initializers :class-initializers \\ + :initargs :initfrags :tearfrags \\ :messages :methods} \end{describe} @@ -48,34 +49,23 @@ \dhead{gf}{setf (sod-class-instance-initializers @) @} \dhead{gf}{sod-class-class-initializers @ @> @} \dhead{gf}{setf (sod-class-class-initializers @) @} + \dhead{gf}{sod-class-initargs @ @> @} + \dhead{gf}{setf (sod-class-initargs @) @} + \dhead{gf}{sod-class-initfrags @ @> @} + \dhead{gf}{setf (sod-class-initfrags @) @} + \dhead{gf}{sod-class-tearfrags @ @> @} + \dhead{gf}{setf (sod-class-tearfrags @) @} \dhead{gf}{sod-class-messages @ @> @} \dhead{gf}{setf (sod-class-messages @) @} \dhead{gf}{sod-class-methods @ @> @} \dhead{gf}{setf (sod-class-methods @) @}} \end{describe*} -%% layout protocol -\begin{describe*} - {\dhead{gf}{sod-class-ilayout @> @} - \dhead{gf}{sod-class-effective-methods @ @> @} - \dhead{gf}{sod-class-vtables @ @> @}} -\end{describe*} - -\begin{describe}{gf}{guess-metaclass @ @> @} -\end{describe} - \begin{describe}{fun} {make-sod-class @ @ @ \&optional @ @> @} \end{describe} -\begin{describe}{mac} - {define-sod-class @ (@^*) \\ \ind - @{ @ @ @}^* \\ - @^* \\ - @
^*} -\end{describe} - \begin{describe*} {\dhead{lmac}{slot @ @ @{ @ @ @}^*} \dhead{lmac}{instance-initializer @ @ @@ -135,7 +125,7 @@ \end{describe} \begin{describe}{cls} - {sod-class-slot (sod-slot) \\ \ind + {sod-class-slot (sod-slot) \\ \ind \&key :name :location :pset :class :type :initializer-function :prepare-function} \end{describe} @@ -147,39 +137,87 @@ \begin{describe*} {\dhead{cls}{sod-initializer () - \&key :slot :location :class :value-kind :value-form} + \&key :slot :location :class :value} \dhead{cls}{sod-instance-initializer (sod-initializer) - \&key :slot :location :class :value-kind :value-form} + \&key :slot :location :class :value} \dhead{cls}{sod-class-initializer (sod-initializer) - \&key :slot :location :class :value-kind :value-form}} + \&key :slot :location :class :value}} \end{describe*} \begin{describe*} {\dhead{gf}{sod-initializer-slot @ @> @} - \dhead{gf}{sod-initializer-value-kind @ @> @} - \dhead{gf}{sod-initializer-value-form @ @> @}} + \dhead{gf}{sod-initializer-value @ @> @}} \end{describe*} \begin{describe*} {\dhead{gf} - {make-slot-instance-initializer \=@ @ @ - @ @ \+ \\ - @ \&optional @ \- + {make-slot-instance-initializer + \=@ @ @ @ @ \&optional @ \nlret @} \dhead{gf} - {make-slot-class-initializer \=@ @ @ - @ @ \+ \\ - @ \&optional @ \- + {make-slot-class-initializer + \=@ @ @ @ @ \&optional @ \nlret @}} \end{describe*} \begin{describe}{gf} - {make-sod-initializer-using-slot \=@ @ @ - @ @ \+ \\ - @ \&optional @ \- + {make-sod-initializer-using-slot + \=@ @ @ @ @ \&optional @ \nlret @} \end{describe} +\begin{describe}{cls}{sod-initarg () \&key :class :location :name :type} +\end{describe} + +\begin{describe*} + {\dhead{gf}{sod-initarg-class @ @> @} + \dhead{gf}{sod-initarg-name @ @> @} + \dhead{gf}{sod-initarg-type @ @> @}} +\end{describe*} + +\begin{describe}{cls} + {sod-user-initarg (sod-initarg) + \&key :class :location :name :type :default} +\end{describe} + +\begin{describe}{gf} + {make-sod-user-initarg @ @ @ @ + \&optional @ @} +\end{describe} + +\begin{describe}{gf}{sod-initarg-default @ @> @} +\end{describe} + +\begin{describe}{cls} + {sod-slot-initarg (sod-initarg) + \&key :class :location :name :type :slot} +\end{describe} + +\begin{describe}{gf}{sod-initarg-slot @ @> @} +\end{describe} + +\begin{describe}{gf} + {make-sod-slot-initarg @ @ @ @ @ + \&optional @} +\end{describe} + +\begin{describe}{gf} + {make-sod-slot-initarg @ @ @ @ @ + \&optional @} +\end{describe} + +\begin{describe}{gf} + {make-sod-slot-initarg-using-slot @ @ @ @ + \&optional @} +\end{describe} + +\begin{describe*} + {\dhead{gf}{make-sod-class-initfrag @ @ @ + \&optional @} + \dhead{gf}{make-sod-class-tearfrag @ @ @ + \&optional @}} +\end{describe*} + \begin{describe}{cls}{sod-message () \&key :name :location :class :type} \end{describe} @@ -214,15 +252,17 @@ \end{describe*} \begin{describe}{gf} - {make-sod-method \=@ @ @ @ @ \+ \\ - @ \&optional @ \- + {make-sod-method + \=@ @ @ @ @ \+\\ + @ \&optional @ \- \nlret @} \end{describe} \begin{describe}{gf} - {make-sod-method-using-message \=@ @ - @ @ \+ \\ - @ \&optional @ \- + {make-sod-method-using-message + \=@ @ + @ @ \+\\ + @ \&optional @ \- \nlret @} \end{describe} @@ -238,11 +278,22 @@ @> @} \end{describe} +\begin{describe}{fun}{check-method-return-type @ @} +\end{describe} + +\begin{describe}{fun} + {check-method-return-type-against-message @ @} +\end{describe} + +\begin{describe}{fun} + {check-method-argument-lists @ @} +\end{describe} + %%%-------------------------------------------------------------------------- \section{Class finalization protocol} \label{sec:meta.finalization} \begin{describe*} - {\dhead{gf}{sod-class-precedence-list @> @} + {\dhead{gf}{sod-class-precedence-list @ @> @} \dhead{gf}{sod-class-type @ @> @} \dhead{gf}{sod-class-chain-head @ @> @} \dhead{gf}{sod-class-chain @ @> @} @@ -253,9 +304,15 @@ \begin{describe}{gf}{compute-cpl @ @> @} \end{describe} +\begin{describe}{fun}{merge-class-lists @ @ @> @} +\end{describe} + \begin{describe}{gf}{compute-chains @ @> @} \end{describe} +\begin{describe}{gf}{guess-metaclass @ @> @} +\end{describe} + \begin{describe}{gf}{check-sod-class @} \end{describe} @@ -279,6 +336,7 @@ \begin{describe}{fun}{l*loops-cpl @ @> @} \end{describe} + %%%----- That's all, folks -------------------------------------------------- %%% Local variables: