mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
read-set! takes effect at expand time
* module/ice-9/boot-9.scm (define-option-interface): The set! command goes in an eval-when to be run at expand-time, so that (read-set! keywords 'prefix) does what it used to in 1.8 (mostly).
This commit is contained in:
parent
c372cd74fd
commit
e79caaa6c5
1 changed files with 2 additions and 1 deletions
|
@ -2637,7 +2637,8 @@ module '(ice-9 q) '(make-q q-length))}."
|
|||
(define-syntax option-set!
|
||||
(syntax-rules ()
|
||||
((_ opt val)
|
||||
(options (append (options) (list 'opt val))))))))))
|
||||
(eval-when (eval load compile expand)
|
||||
(options (append (options) (list 'opt val)))))))))))
|
||||
|
||||
(define-option-interface
|
||||
(debug-options-interface
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue