From: Mark Wooding Date: Sat, 3 Aug 2019 14:53:21 +0000 (+0100) Subject: src/class-make-impl.lisp: Attach initargs in the correct order. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/commitdiff_plain/8a7afc76fd5f929de335cf318741e3489d6c6107 src/class-make-impl.lisp: Attach initargs in the correct order. This is important for selecting the right slot initarg. --- diff --git a/src/class-make-impl.lisp b/src/class-make-impl.lisp index 4785d9c..b96d830 100644 --- a/src/class-make-impl.lisp +++ b/src/class-make-impl.lisp @@ -183,11 +183,15 @@ (defmethod make-sod-slot-initarg-using-slot ((class sod-class) name (slot sod-slot) pset &key location) (with-slots (initargs) class (with-slots ((type %type)) slot - (push (make-instance (get-property pset :initarg-class :symbol - 'sod-slot-initarg) - :location (file-location location) - :class class :name name :type type :slot slot) - initargs)))) + (setf initargs + (append initargs + (cons (make-instance (get-property pset :initarg-class + :symbol + 'sod-slot-initarg) + :location (file-location location) + :class class :name name + :type type :slot slot) + nil)))))) (defmethod sod-initarg-default ((initarg sod-initarg)) nil)