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