From ... Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!fr.clara.net!heighliner.fr.clara.net!lirmm.fr!cines.fr!univ-lyon1.fr!nmaster.kpnqwest.net!nreader3.kpnqwest.net.POSTED!not-for-mail Newsgroups: comp.lang.lisp Subject: Re: Escaping in strings References: Mail-Copies-To: never From: Erik Naggum Message-ID: <3214525744108869@naggum.net> Organization: Naggum Software, Oslo, Norway Lines: 25 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 12 Nov 2001 03:49:05 GMT X-Complaints-To: newsmaster@Norway.EU.net X-Trace: nreader3.kpnqwest.net 1005536945 193.71.66.49 (Mon, 12 Nov 2001 04:49:05 MET) NNTP-Posting-Date: Mon, 12 Nov 2001 04:49:05 MET Xref: archiver1.google.com comp.lang.lisp:19653 * Thomas Strathmann | First of all, forgive me, if this is a trivial and stupid question but I am | really stuck at this point (just in the process of learning things): | I need to pass the string "\304" but the \ is just left out by the reader. | \\ like in C does not have the desired effect and everything else does not | do anything useful either... Please help me. If you want to write in C, I think actually writing in C is your best bet for the "desired effect". If you want to know what the "desired effect" _should_ be when you are writing in _any_ programming language, you need to be looking for that rules of that language, not some other. E.g., if a language decides to mimic C in some ways, it is a rule of that language. In Common Lisp, a string is delimited by "", within which a \ will escape the following \ or ". A symbol name may be delimited by || within which a \ will escape the following \ or |. Outside of either, a \ will cause the next character to be considered a constituent character of a symbol name regardless of any other traits it might have had. That is all. /// -- Norway is now run by a priest from the fundamentalist Christian People's Party, the fifth largest party representing one eighth of the electorate. -- Carrying a Swiss Army pocket knife in Oslo, Norway, is a criminal offense.