From ... From: Erik Naggum Subject: Re: reading string literals Date: 1999/10/18 Message-ID: <3149270544379358@naggum.no>#1/1 X-Deja-AN: 537665624 References: <7ug0jd$qut$1@bgtnsc03.worldnet.att.net> mail-copies-to: never X-Complaints-To: newsmaster@eunet.no X-Trace: oslo-nntp.eunet.no 940281744 12895 195.0.192.66 (18 Oct 1999 21:22:24 GMT) Organization: Naggum Software; +47 8800 8879; +1 510 435 8604; http://www.naggum.no NNTP-Posting-Date: 18 Oct 1999 21:22:24 GMT Newsgroups: comp.lang.lisp * "Patrick Summers" | I would like to have the user input a persons name, but have it treated | as a string literal. When I use the code (setq firstname (read)) and the | user types: Bill it returns BILL. READ parses and returns Lisp expressions and data. | How can I read it in as "Bill" without the user typing the quotes? well, the user obviously needs to terminate his input with something, and that something is typically a line terminator, too, which means that READ-LINE should seem like a fairly typical thing to think of. | I would like a simple Stringread function, which the version of Harlequin | LispWorks I'm using does have (I've seen in the list of errors when I make a | mistake), but I can't find any documentation on how to use it. the problem with introspective environments is that people who have no idea what to look for tend to find the strangest things. try a textbook and make sure you leave your old language backgrounds behind: try to grasp what the language is giving you, rather than insist on taking what you think it ought to have. #:Erik