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