Basic constructor macro for obj-declon structures.
(make-obj-declon [:scspec <scspec>] [:tyspec <tyspec>] [:declor <declor>] [:init? <init?>])
This is the usual way to construct obj-declon structures. It simply conses together a structure with the specified fields.
This macro generates a new obj-declon structure from scratch. See also change-obj-declon, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-obj-declon (&rest args) (std::make-aggregate 'obj-declon args '((:scspec) (:tyspec) (:declor) (:init?)) 'make-obj-declon nil))
Function:
(defun obj-declon (scspec tyspec declor init?) (declare (xargs :guard (and (scspecseqp scspec) (tyspecseqp tyspec) (obj-declorp declor) (initer-optionp init?)))) (declare (xargs :guard t)) (let ((__function__ 'obj-declon)) (declare (ignorable __function__)) (b* ((scspec (mbe :logic (scspecseq-fix scspec) :exec scspec)) (tyspec (mbe :logic (tyspecseq-fix tyspec) :exec tyspec)) (declor (mbe :logic (obj-declor-fix declor) :exec declor)) (init? (mbe :logic (initer-option-fix init?) :exec init?))) (cons :obj-declon (list (cons 'scspec scspec) (cons 'tyspec tyspec) (cons 'declor declor) (cons 'init? init?))))))