;;;; in Text, HTML, and XML formats. This includes hyperlinking
;;;; capability and sub-objects.
;;;;
-;;;; $Id: mop.lisp,v 1.39 2003/04/04 00:01:36 kevin Exp $
+;;;; $Id: mop.lisp,v 1.41 2003/04/12 03:14:29 kevin Exp $
;;;;
;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg
;;;;
#+lispworks
'(the-class the-instance the-slot-name)
#+lispworks
- '((ignore the-class))
+ nil
#+lispworks
`(setf (slot-value the-instance the-slot-name) (,reader ,@keys))
nil)
(name-class subobject) (name-slot subobject) (lookup subobject) (lookup-keys subobject))
)
(push subobject subobjects))))
- subobjects)))
+ ;; allegro and lispworks reverse class-slots compared to the defclass form
+ ;; subobject is already reversed from the dolist/push loop, so re-reverse on non-allegro/lispworks
+ #+(or lispworks allegro) subobjects
+ #-(or lispworks allegro) (nreverse subobjects)
+ )))
(defun finalize-documentation (cl)
"Calculate class documentation slot"
:lookup it
:link-parameters (slot-value esd 'hyperlink-parameters))
hyperlinks)))
+ ;; allegro and lispworks reverse class-slots compared to the defclass form
+ ;; hyperlinks is already reversed from the dolist/push loop, so re-reverse on non-allegro/lispworks
+ #-(or lispworks allegro) (setq hyperlinks (nreverse hyperlinks))
(setf (slot-value cl 'hyperlinks) hyperlinks)))
(defun init-hyperobject-class (cl)
(hyperlinks (class-of obj)))
(defun hyperobject-class-fields (obj)
- (class-slots (class-of obj)))
+ ;; allegro and lispworks reverse class-slots
+ #+(or allegro lispworks) (reverse (class-slots (class-of obj)))
+ #-(or allegro lispworks) (class-slots (class-of obj)))