mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2025-12-06 02:40:26 -08:00
make-load-form: cons: initialize car in init form
This way we do not need to worry about cons recursion in make forms.
This commit is contained in:
parent
dcdb53f29e
commit
3b6dd501e6
1 changed files with 5 additions and 3 deletions
|
|
@ -128,9 +128,11 @@ printer and we should rather use MAKE-LOAD-FORM."
|
|||
x))))
|
||||
(and init-forms `(progn ,@init-forms)))))
|
||||
(cons
|
||||
(values `(cons ,(maybe-quote (car object)) nil)
|
||||
(and (rest object) `(rplacd ,(maybe-quote object)
|
||||
,(maybe-quote (cdr object))))))
|
||||
(values `(cons nil nil)
|
||||
`(progn (rplaca ,(maybe-quote object)
|
||||
,(maybe-quote (car object)))
|
||||
(rplacd ,(maybe-quote object)
|
||||
,(maybe-quote (cdr object))))))
|
||||
(hash-table
|
||||
(let* ((content (ext:hash-table-content object))
|
||||
(make-form `(make-hash-table
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue