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