mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-12 20:31:55 -08:00
Do not allow :READ-ONLY declarations for special variables
This commit is contained in:
parent
0d78102b09
commit
b8e9f96da5
1 changed files with 5 additions and 2 deletions
|
|
@ -95,8 +95,11 @@
|
|||
"In LET/LET* bindings")
|
||||
(default-init var))))
|
||||
;; :read-only variable handling. Beppe
|
||||
(when (read-only-variable-p name other-decls)
|
||||
(setf (var-type var) (c1form-primary-type init)))
|
||||
(if (read-only-variable-p name other-decls)
|
||||
(if (global-var-p var)
|
||||
(cmpwarn "Found :READ-ONLY declaration for global var ~A"
|
||||
name)
|
||||
(setf (var-type var) (c1form-primary-type init))))
|
||||
(push var vars)
|
||||
(push init forms)
|
||||
(when (eq let/let* 'LET*) (push-vars var))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue