[ansi-test-devel] WITH-STANDARD-IO-SYNTAX.23?

Tobias C. Rittweiler tcr at freebits.de
Fri Apr 16 07:19:42 UTC 2010


Raymond Toy <toy.raymond at gmail.com> writes:

> In this test, the expected result is ("FOO" "BAR").  Shouldn't the
> expected answer be ("FOO" "CL-TEST::BAR")? 
>
> (princ-to-string 'bar) should print the symbol cl-test::bar with
> *package* set to the cl-user package, so package qualifer should be
> printed, right?

CLHS *PRINT-ESCAPE* says

  If false, escape characters and package prefixes are not output when
  an expression is printed.

and CLHS PRINC-TO-STRING says

  princ-to-string acts like write-to-string with :escape nil :readably
  nil. Thus no escape characters are written.

and CLHS WRITE tells about the mapping between parameters to WRITE and
the *PRINT-FOO* variables.

  -T.





More information about the ansi-test-devel mailing list