X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/03570bbb9027efe5485d4776fc22d93ad410a892..54ea6ee880f52c23279bf58262ca245b531d04b0:/src/class-make-impl.lisp 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 @@ ((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)