Hello clisp developers,
I just encountered some surprising behaviour with clisp 2.41
(on IRC they say they get the same behaviour with 2.44):
> (defconstant crlf #.(format nil "~C~C" #\Return #\Linefeed))
> (length crlf)
> (length (format nil "Q~a" crlf))
I was expecting that to be 3, not 4. It looks like an extra linefeed
is being added by format for some reason.
Thanks for a great product,
On Tue, Mar 18, 2008 at 10:21:31AM -0400 or thereabouts, Sam Steingold wrote:
> yeah, this does not seem right, nevertheless, it is :-)
> you are pretty-printing two objects: #\Q (a one-liner) and CRLF (a
> multi-liner). we believe that "pretty", in this case, means each object
> on its own line.
Aha, I knew something was a bit funny! Thanks very much for
the clarification Sam.