X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Fkmr-mop.lisp;h=8fccf57778e306a4a9ce6b3b7801dfd49c026d3e;hp=3953c8c279db097a67107bcee86a30a848bb8193;hb=e622ee6f4bf2b9fe81af59d566e651c983a4833b;hpb=5068697a98c10224f3a3e0a7125ba64cf3d3b4fb diff --git a/sql/kmr-mop.lisp b/sql/kmr-mop.lisp index 3953c8c..8fccf57 100644 --- a/sql/kmr-mop.lisp +++ b/sql/kmr-mop.lisp @@ -46,9 +46,19 @@ (declare (ignore metaclass slot-name)) ) +(eval-when (:compile-toplevel :load-toplevel :execute) + (defclass %slot-order-test-class () + ((a) + (b))) + (finalize-inheritance (find-class '%slot-order-test-class)) + (let ((slots (class-slots (find-class '%slot-order-test-class)))) + (ecase (slot-definition-name (first slots)) + (a) + (b (pushnew :mop-slot-order-reversed cl:*features*))))) + (defun ordered-class-slots (class) - #+(or cmu sbcl) (class-slots class) - #-(or cmu sbcl) (reverse (class-slots class))) + #+mop-slot-order-reversed (reverse (class-slots class)) + #-mop-slot-order-reversed (class-slots class)) ;; Lispworks has symbol for slot rather than the slot instance (defun %svuc-slot-name (slot)