1.0.43.38: some PPRINT-LOGICAL-BLOCK issues
authorNikodemus Siivola <nikodemus@random-state.net>
Sat, 9 Oct 2010 22:33:41 +0000 (22:33 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sat, 9 Oct 2010 22:33:41 +0000 (22:33 +0000)
commit989f5a77df0dbf4557eda6fb92c4365e19818598
tree885e495a6d7c2f86839b30f21c50b6e6138376c8
parent20f2eb60679bbfe0319e0476dad8fd0bbd27899f
1.0.43.38: some PPRINT-LOGICAL-BLOCK issues

 :PER-LINE-PREFIX was multiply-evaluated, and both it, :PREFIX, and :SUFFIX
 caused code-deletion notes to be issued.

 Stick a ONCE-ONLY in there, and use

    (declare (string ...))

 instead of

    (unless (typep x 'string) (error ...))

 Python derives the fact that the argments must be strings by the time
 the TYPEP call occurs from the call to START-LOGICAL-BLOCK, hence the
 code-deletion note for the call to ERROR.
NEWS
src/code/early-pprint.lisp
tests/pprint.impure.lisp
version.lisp-expr