Basic constructor macro for jexpr-smethod structures.
(make-jexpr-smethod [:type <type>] [:name <name>] [:args <args>])
This is the usual way to construct jexpr-smethod structures. It simply conses together a structure with the specified fields.
This macro generates a new jexpr-smethod structure from scratch. See also change-jexpr-smethod, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-jexpr-smethod (&rest args) (std::make-aggregate 'jexpr-smethod args '((:type) (:name) (:args)) 'make-jexpr-smethod nil))
Function:
(defun jexpr-smethod (type name args) (declare (xargs :guard (and (jtypep type) (stringp name) (jexpr-listp args)))) (declare (xargs :guard t)) (let ((__function__ 'jexpr-smethod)) (declare (ignorable __function__)) (b* ((type (mbe :logic (jtype-fix type) :exec type)) (name (mbe :logic (str-fix name) :exec name)) (args (mbe :logic (jexpr-list-fix args) :exec args))) (cons :smethod (list type name args)))))