mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-17 19:52:26 +02:00
defvar affects default value
(Best-ability ChangeLog annotation added by Christine Lemmer-Webber.) * module/language/elisp/compile-tree-il.scm (defvar): Refactor appropriately.
This commit is contained in:
parent
534211afac
commit
c25539c9dc
1 changed files with 5 additions and 2 deletions
|
@ -511,10 +511,13 @@
|
|||
(make-conditional
|
||||
loc
|
||||
(make-call loc
|
||||
(make-module-ref loc runtime 'symbol-bound? #t)
|
||||
(make-module-ref loc runtime 'symbol-default-bound? #t)
|
||||
(list (make-const loc sym)))
|
||||
(make-void loc)
|
||||
(set-variable! loc sym (compile-expr value)))
|
||||
(make-call loc
|
||||
(make-module-ref loc runtime 'set-symbol-default-value! #t)
|
||||
(list (make-const loc sym)
|
||||
(compile-expr value))))
|
||||
(make-const loc sym))))
|
||||
(else (report-error loc "Bad defvar" args))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue