1
Fork 0
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:
Rob Browning 2001-07-06 17:38:40 +00:00
parent 0d6209aa9e
commit 600c958485

View file

@ -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}