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

Nick Fitzgerald fitzgen at gmail.com
Wed Jul 14 00:53:33 UTC 2010


Thank you very much!

_Nick_



On Tue, Jul 13, 2010 at 10:09 AM, Vladimir Sedach <vsedach at gmail.com> wrote:

> 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
> >
> >
>
> _______________________________________________
> parenscript-devel mailing list
> parenscript-devel at common-lisp.net
> http://common-lisp.net/cgi-bin/mailman/listinfo/parenscript-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/parenscript-devel/attachments/20100713/5ab51a47/attachment.html>


More information about the parenscript-devel mailing list