Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
line-break string-literal
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Frode Vatvedt Fjeld  
View profile  
 More options Oct 25 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Frode Vatvedt Fjeld <fro...@acm.org>
Date: 1999/10/25
Subject: line-break string-literal

Is it possible to line-break a string-literal in Common-Lisp, such
that the reader will recognize it as a single string?

--
Frode Vatvedt Fjeld


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Oct 25 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <e...@naggum.no>
Date: 1999/10/25
Subject: Re: line-break string-literal
* Frode Vatvedt Fjeld <fro...@acm.org>
| Is it possible to line-break a string-literal in Common-Lisp, such
| that the reader will recognize it as a single string?

  if you want to know if newlines are allowed in string literals in Common
  Lisp, the answer it yes, they are, and they need no special treatment.

#:Erik


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Christopher R. Barry  
View profile  
 More options Oct 25 1999, 3:00 am
Newsgroups: comp.lang.lisp
From: cba...@2xtreme.net (Christopher R. Barry)
Date: 1999/10/25
Subject: Re: line-break string-literal
Frode Vatvedt Fjeld <fro...@acm.org> writes:

> Is it possible to line-break a string-literal in Common-Lisp, such
> that the reader will recognize it as a single string?

Newlines in a string literal won't break that string into two strings,
as you probably already know. I think what you meant to ask was if
there is a way to break a string into more than one line and have it
interpreted as if it were all on one line (insert non-literal
newlines, in other words). You can do this with FORMAT strings.

  "foo bar ~
   baz quux"

is equivalent to:

  "foo bar baz quux"

See:

  http://www.harlequin.com/education/books/HyperSpec/Body/sec_22-3.html

to have all the rules explained.

Christopher


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »