summaryrefslogtreecommitdiff
path: root/Lisp/class-definition.lisp
diff options
context:
space:
mode:
authorMatthias Benkard <code@mail.matthias.benkard.de>2008-03-05 14:12:58 +0100
committerMatthias Benkard <code@mail.matthias.benkard.de>2008-03-05 14:12:58 +0100
commit3a35930787e6caf4bb126fd828221dab79d939fc (patch)
treee8074d3338bf0ef60e5520640c541ab05411dc0a /Lisp/class-definition.lisp
parentc9dda9d6a341d4b4e46c9148b8dcbba94e2c8b2c (diff)
Fix documentation formatting.
darcs-hash:511ea4147397dc61baabcd0ddc39c7ec01097163
Diffstat (limited to 'Lisp/class-definition.lisp')
-rw-r--r--Lisp/class-definition.lisp20
1 files changed, 10 insertions, 10 deletions
diff --git a/Lisp/class-definition.lisp b/Lisp/class-definition.lisp
index 729c19a..d6cc6a9 100644
--- a/Lisp/class-definition.lisp
+++ b/Lisp/class-definition.lisp
@@ -79,7 +79,7 @@ per (4) above), the behaviour is undefined.
slot ::= (*slot-name* [[*slot-option* | *foreign-slot-option*]]\\*)
-foreign-slot-option ::= {:foreign-type *typespec*} | {:foreign-name *foreign-name*}
+foreign-slot-option ::= \\{:foreign-type *typespec*\\} | \\{:foreign-name *foreign-name*\\}
*typespec* --- a **list** or a **symbol**.
@@ -120,16 +120,16 @@ transforming it to Lower Camel Case as follows:
(foo-count :foreign-type :int))) ;foreign name will be \"fooCount\"
=> #<NS:+MLK-MY-CLASS NS:MLK-MY-CLASS {82c05c0}>
- (defvar *x* (invoke (find-objc-class 'mlk-my-class) 'new))
- => *X*
+ (defvar \\*x\\* (invoke (find-objc-class 'mlk-my-class) 'new))
+ => \\*X\\*
- (slot-boundp *x* 'foo-count) => T
- (setf (slot-value *x* 'foo-count) 100) => 100
- (slot-value *x* 'foo-count) => 100
+ (slot-boundp \\*x\\* 'foo-count) => T
+ (setf (slot-value \\*x\\* 'foo-count) 100) => 100
+ (slot-value \\*x\\* 'foo-count) => 100
- (slot-boundp *x* 'foos) => NIL
- (setf (slot-value *x* 'foos) (list 'a 'b 'c)) => (A B C)
- (slot-value *x* 'foos) => (A B C)
+ (slot-boundp \\*x\\* 'foos) => NIL
+ (setf (slot-value \\*x\\* 'foos) (list 'a 'b 'c)) => (A B C)
+ (slot-value \\*x\\* 'foos) => (A B C)
## Note:
@@ -158,7 +158,7 @@ Because of this, one has to be very careful when using _:string_ as the
## See also:
- __defclass__, __define-objective-c-generic-function,
+ __defclass__, __define-objective-c-generic-function__,
__define-objective-c-method__"
(let* ((objc-superclasses (remove-if-not
#'(lambda (c)