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