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