Improved SI:SAFE-EVAL, making it safe against THROW, and other jumps to an outer point.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-07-31 22:49:19 +02:00
parent f926a8d497
commit ebb4e1c5cb

View file

@ -76,6 +76,9 @@ object's representation."
(values (read stream eof-error-p eof-value)
(file-position stream)))))
(defun si::string-to-object (string &rest args)
(apply #'si::safe-eval `(read-from-string ,string) nil args))
(defun write-to-string (object &rest rest
&aux (stream (make-string-output-stream)))
"Args: (object &key (escape *print-escape*) (radix *print-radix*)