mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-13 21:02:47 -08:00
Hack WITH-UNIQUE-NAMES so that it can be used before the sequence functions are installed
This commit is contained in:
parent
3ebe4b146f
commit
1bf4956d5a
1 changed files with 6 additions and 2 deletions
|
|
@ -136,9 +136,13 @@
|
|||
(defmacro with-unique-names (symbols &body body)
|
||||
`(let* ,(mapcar (lambda (symbol)
|
||||
(let* ((symbol-name (symbol-name symbol))
|
||||
#+ecl-min
|
||||
(stem symbol-name)
|
||||
#-ecl-min
|
||||
(stem (if (every #'alpha-char-p symbol-name)
|
||||
symbol-name
|
||||
(concatenate 'string symbol-name "-"))))
|
||||
nil
|
||||
symbol-name
|
||||
(concatenate 'string symbol-name "-"))))
|
||||
`(,symbol (gensym ,stem))))
|
||||
symbols)
|
||||
,@body))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue