Macro
lispworks
top-level-form name &body body => result
The name to use as the parent.
The forms across which to use name as the parent.
The result of evaluating body.
top-level-form is exported from theLISPWORKS package.
(in-package "CL-USER")
(defmacro define-thing (name value)
'(top-level-form (define-thing ,name)
(install-thing ',name ,value)))
(defun install-thing (x y)
(set x y))
(define-thing the-thing 42)
(define-thing some-thing 43)
; (DEFINE-THING THE-THING) ; (DEFINE-THING SOME-THING)
; (TOP-LEVEL-FORM 3)
Meta-. you enter (define-thing the-thing)