[parenscript-devel] Bug w/ strings and backslashes?

Vladimir Sedach vsedach at gmail.com
Tue Jul 13 17:09:26 UTC 2010


Hi Nick,

What you're seeing is CL string escapes in the output string:

PS> (ps "\\n")
"'\\\\n';"
PS> (format t (ps "\\n"))
'\\n';

Vladimir

2010/7/12 Nick Fitzgerald <fitzgen at gmail.com>:
> Hello everyone!
> Maybe I am misinterpreting this, but I can't seem to reproduce the following
> example from the reference.
>> Parenscript makes no effort to interpolate C-style escape strings. Rather,
>> non-printable characters in Lisp strings are output using escape sequences:
>>
>> > #\Tab
>>
>> '\t';
>>
>> > "\\n"
>>
>> '\\n';
> This is the behavior that I get:
>> PS> (ps "\\n")
>> "'\\\\n';"
>> PS> (ps "\n")
>> "'n';"
> Am I doing something wrong?
> I'm on the HEAD of master from
> http://common-lisp.net/project/parenscript/git/parenscript, btw.
> Thanks,
> _Nick_
>
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
>




More information about the parenscript-devel mailing list