summaryrefslogtreecommitdiff
path: root/Lisp/method-definition.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-05 17:24:10 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-05 17:24:10 +0100
commit28a959c4f007cd853fd011f2cb100887e904c7b5 (patch)
treef33cc352e827e1e6a63b10187b7236ff9422dfc9 /Lisp/method-definition.lisp
parent69bfdcfb2a1218eddea19ea86378589e50f87b27 (diff)
Document OBJECTIVE-C-GENERIC-FUNCTION and OBJECTIVE-C-METHOD.
darcs-hash:97cd663f2aa97f8dcaee5bdc3d467b2e92241430
Diffstat (limited to 'Lisp/method-definition.lisp')
-rw-r--r--Lisp/method-definition.lisp33
1 files changed, 31 insertions, 2 deletions
diff --git a/Lisp/method-definition.lisp b/Lisp/method-definition.lisp
index b7f716e..a6b9ea2 100644
--- a/Lisp/method-definition.lisp
+++ b/Lisp/method-definition.lisp
@@ -20,7 +20,21 @@
(defclass objective-c-generic-function (standard-generic-function)
()
- (:metaclass funcallable-standard-class))
+ (:metaclass funcallable-standard-class)
+ (:documentation "An Objective-C dispatch function for a given selector.
+
+## Description:
+
+Every Lisp-defined __objective-c-method__ belongs to a corresponding
+__objective-c-generic-function__ that handles **method combination** and
+registration of newly added **method**s with the Objective-C runtime.
+
+It is recommended to create all __objective-c-generic-functions__ by
+means of the macro __define-objective-c-generic-function__.
+
+If you subclass this **class**, be aware that there is no protocol that
+describes its behaviour, so the consequences of overriding any
+**generic function**s **applicable** to the **class** are undefined."))
(defclass objective-c-method (standard-method)
@@ -28,7 +42,22 @@
:accessor method-return-type)
(argument-types :initarg :argument-types
:accessor method-argument-types))
- (:metaclass standard-class))
+ (:metaclass standard-class)
+ (:documentation "An Objective-C method implemented in Lisp.
+
+## Description:
+
+Instances of __objective-c-method__ are similar to instances of
+__standard-method__ except that they know about their foreign argument
+and return types and recognise different **qualifier**s that they
+communicate to the __objective-c-generic-function__ that they belong to.
+
+It is recommended to create all __objective-c-methods__ by means of the
+macro __define-objective-c-method__.
+
+There is no protocol that defines the behaviour of this **class**, so
+the consequences of subclassing it and overriding its **method**s is
+undefined."))
(defun qualifiers-return-type (qualifiers)