[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #| One last comment on #| |#
- To: KMP at MIT-MC (Kent M. Pitman)
- Subject: Re: #| One last comment on #| |#
- From: Guy.Steele at CMU-10A
- Date: Wed ,1 Oct 80 13:01:00 EDT
- Cc: lisp-forum at MIT-MC
Nothing's perfect. You can't get a carriage-return into a ;-comment
either. And what of the loser who adds a ; to the second line of
(COND ((SCREWYP FROB)
(FORMAT T "This frob is extremely ~
screwy: ~S" FROB)))
to produce
(COND ((SCREWYP FROB)
; (FORMAT T "This frob is extremely ~
screwy: ~S" FROB)
)
because he thought the <cr> in the string "didn't count"?
The answer is that every string-gobbling or commenting device
has to be terminated by *something*, and you just can't get that
something into such a construct. So indeed, when you put #|...|#
around something you have to look for |# first. It doesn't
work to put a string in a string either.