mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-18 17:50:29 +02:00
* boot-9.scm: added fix suggested by Matthias for #. read
extension -- now only works if read-eval? is not #f.
This commit is contained in:
parent
0d6209aa9e
commit
600c958485
1 changed files with 9 additions and 2 deletions
|
@ -779,8 +779,15 @@
|
|||
|
||||
(read-hash-extend #\' (lambda (c port)
|
||||
(read port)))
|
||||
(read-hash-extend #\. (lambda (c port)
|
||||
(eval (read port) (interaction-environment))))
|
||||
|
||||
(define read-eval? (make-fluid))
|
||||
(fluid-set! read-eval? #f)
|
||||
(read-hash-extend #\.
|
||||
(lambda (c port)
|
||||
(if (fluid-ref read-eval?)
|
||||
(eval (read port) (interaction-environment))
|
||||
(error
|
||||
"#. read expansion found and read-eval? is not #f."))))
|
||||
|
||||
|
||||
;;; {Command Line Options}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue