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

Raymond Toy toy.raymond at gmail.com
Fri Apr 16 11:37:49 UTC 2010


On 4/16/10 3:19 AM, Tobias C. Rittweiler wrote:
> 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.
>   
Ah, thanks for pointing that out.  It's a bug in cmucl where
princ-to-string doesn't set readably to nil.

Ray





More information about the ansi-test-devel mailing list