Apropos

with-standard-io-syntaxMacro

    Syntax

    with-standard-io-syntax {form}* {result}*

    Arguments and Values

    forms — an implicit progn.

    results — the values returned by the forms.

    Description

    Within the dynamic extent of the body of forms, all reader/printer control variables, including any implementation-defined ones not specified by this standard, are bound to values that produce standard read/print behavior. The values for the variables specified by this standard are listed in Figure 23–1.

    Figure 23–1. Values of standard control variables
    Examples
     (with-open-file (file pathname :direction :output) 
       (with-standard-io-syntax 
         (print data file))) 
    
    ;;; ... Later, in another Lisp: 
    
     (with-open-file (file pathname :direction :input) 
       (with-standard-io-syntax 
         (setq data (read file))))