[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Issue: HASH-TABLE-PACKAGE-GENERATORS (version 5)
- To: Moon@STONY-BROOK.SCRC.Symbolics.COM
- Subject: Issue: HASH-TABLE-PACKAGE-GENERATORS (version 5)
- From: Jon L White <jonl@lucid.com>
- Date: Wed, 30 Nov 88 16:44:47 PST
- Cc: cl-cleanup@sail.stanford.edu
- In-reply-to: David A. Moon's message of Tue, 29 Nov 88 23:52 EST <19881130045224.8.MOON@EUPHRATES.SCRC.Symbolics.COM>
re: [fix final nits]
Ok, I'll do it. I would also like to embellish the sample code for the
do-mumble-symbols guys to be more nearly workable. What would you say to
the following for DO-SYMBOLS? [PARSE-BODY is as defined in Guy Steele's
"Clarifications" of 6-Dec-85.]
(defmacro do-symbols ((var &optional (package `*package*) result-form)
&body body)
(multiple-value-bind (body decls docstring) (parse-body body)
`(with-package-iterator (next-symbol (list ,package)
:internal :external :inherited)
(let (more? ,var)
,@decls
(loop
(unless (multiple-value-setq (more? ,var) (next-symbol))
(return ,result-form))
,@body)))))
-- JonL --