lispdoc - results for with-standard-io-syntax |
(with-standard-io-syntax &body body) | Function: Bind the reader and printer control variables to values that enable READ to reliably read the results of PRINT. These values are: *PACKAGE* the COMMON-LISP-USER package *PRINT-ARRAY* T *PRINT-BASE* 10 *PRINT-CASE* :UPCASE *PRINT-CIRCLE* NIL *PRINT-ESCAPE* T *PRINT-GENSYM* T *PRINT-LENGTH* NIL *PRINT-LEVEL* NIL *PRINT-LINES* NIL *PRINT-MISER-WIDTH* NIL *PRINT-PPRINT-DISPATCH* the standard pprint dispatch table *PRINT-PRETTY* NIL *PRINT-RADIX* NIL *PRINT-READABLY* T *PRINT-RIGHT-MARGIN* NIL *READ-BASE* 10 *READ-DEFAULT-FLOAT-FORMAT* SINGLE-FLOAT *READ-EVAL* T *READ-SUPPRESS* NIL *READTABLE* the standard readtable
|
Example:(defun load-db (filename) (with-open-file (in filename) (with-standard-io-syntax (setf *db* (read in))))) | Mentioned in: CLtL2 - 22.1.6. What the Print Function Produces CLtL2 - 9.1. Declaration Syntax HyperSpec - Macro WITH-STANDARD-IO-SYNTAX PCL - query parameter types PCL - saving and loading the database Successful Lisp - lesson 11 |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |