, , :
:
(this-is-some-function-with-some-file-opened (princ 99))
, princ this-is-some-function-with-some-file-opened. . .
, , . - .
:
(with-open-file (s "dump" :direction :output)
(princ 99 s))
:
(call-with-open-file
(lambda (s)
(princ 99 s))
"dump"
:direction :output)
, . . Common Lisp . Lisp (OPEN, CLOSE, UNWIND-PROTECT) WITH-OPEN-FILE, , .
, , :
(call-with-open-file
(lambda (s)
(princ 99 s)
; 100 more lines here
)
"dump"
:direction :output)
, , . , , Common Lisp - : , .
, . .