Use a specified name as a parent name in the specified body of forms.
is deprecated. Use def instead.
The name to use as the parent.
The forms across which to use name as the parent.
The result of evaluating
This macro is useful in the expansion of defining macros. Every form in the
as its parent name. This can be useful for things such as debugging.
is exported from the
Compiling the file
(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)
gives messages such as
; (DEFINE-THING THE-THING)
; (DEFINE-THING SOME-THING)
rather than the more cryptic
; (TOP-LEVEL-FORM 3)
which is the default.
In addition, LispWorks is able to find the source of this form if after typing
LispWorks Reference Manual - 25 Jul 2003