Subject: Re: input
From: rpw3@rpw3.org (Rob Warnock)
Date: Fri, 24 Apr 2009 20:30:36 -0500
Newsgroups: comp.lang.lisp
Message-ID: <LpmdnQLAt6wh-m_UnZ2dnUVZ_rednZ2d@speakeasy.net>
Thomas A. Russ <tar@sevak.isi.edu> wrote:
+---------------
| And another variant that I've seen, that makes use of uninterned symbols
| for uniqueness, with a name that aids debuggability:
| 
|  (loop with eof = #:EOF
|        for item = (read stream nil eof)
|        until (eq eof item)
|        collect item)
+---------------

Don't forget to quote the #:EOF or you'll blow an UNBOUND-VARIABLE
exception...


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607