Allow (load) to read source location information

This commit is contained in:
Justin Ethier 2020-07-23 15:52:36 -04:00
parent 7dd6ddfc71
commit d1630c6a4f

View file

@ -17,7 +17,7 @@
(define (load filename . env) (define (load filename . env)
(let ((exprs (call-with-input-file filename (let ((exprs (call-with-input-file filename
(lambda (port) (lambda (port)
(read-all port))))) (read-all/source port filename)))))
(for-each (for-each
(lambda (expr) (lambda (expr)
(apply eval (cons expr env))) (apply eval (cons expr env)))