Line breaks in format control string



Raffael Cavallaro <raffaelcavallaro@pas-d'espam-s'il-vous-plait-mac.com> writes:

On 2006-03-30 10:04:56 -0500, mmcconnell17704@xxxxxxxxx said:

(do ((y 1971 (1+ y)))
((= y 1992))
(format t "~&I should have just had the guts to ask her out that day
in ~D." y))
Now someone write it with loop.



?
(loop for y from 1971 below 1992 do (format t "~&I should have just
had the guts to ask her out that day
in ~D." y))

(assuming you meant for the line break to be there and it isn't just
an artifact of your newsreader)

otherwise:

(loop for y from 1971 below 1992
do (format t
"~&I should have just had the guts to ask her out that day in ~D." y))
;; there's no line break in this ^^^ string


(loop for y from 1971 below 1992
do (format t "~&I should have just had the guts ~
to ask her out that day in ~D." y))
;; and neither in that string ^^^^^^^^^^^^^^^^^^^^^^^

--
__Pascal Bourguignon__ http://www.informatimago.com/

"What is this talk of "release"? Klingons do not make software
"releases". Our software "escapes" leaving a bloody trail of
designers and quality assurance people in its wake."
.



Relevant Pages

  • Re: Why dont people like lisp?
    ... Then I would say that a clearer way to express what a person think is: ... (loop for number in numberlist sum (expt number power)) ... (progn (loop with string for x across a and y across b do (format t ...
    (comp.lang.python)
  • Re: Why dont people like lisp?
    ... Then I would say that a clearer way to express what a person think is: ... (loop for number in numberlist sum (expt number power)) ... (progn (loop with string for x across a and y across b do (format t ...
    (comp.lang.lisp)
  • Re: Is a new CL standard possible?
    ... But you'll still need to understand loop in other people's code. ... I'm not too fond of format, but I need to know it because other people ... concatenate 'string. ...
    (comp.lang.lisp)
  • Re: Line breaks in format control string
    ... Pascal Bourguignon writes: ... (loop for y from 1971 below 1992 ... do (format t "~&I should have just had the guts ~ ... There is a newline in the string literal, but FORMAT will ignore it. ...
    (comp.lang.lisp)
  • Re: Line breaks in format control string
    ... On 2006-03-30 11:02:08 -0500, Pascal Bourguignon ... do (format t "~&I should have just had the guts ~ ...
    (comp.lang.lisp)