Subject: Re: lisp idiom for processing each line in a file?
From: rpw3@rpw3.org (Rob Warnock)
Date: Tue, 28 Feb 2006 22:03:40 -0600
Newsgroups: comp.lang.lisp
Message-ID: <67qdnWoeeNKBgJjZRVn-ig@speakeasy.net>
David Trudgett  <wpower@zeta.org.au.nospamplease> wrote:
+---------------
| rpw3@rpw3.org (Rob Warnock) writes:
| >   	    (do ((,line-var #1=(read-line ,stream nil 'eof) #1#))
| > 		((null ,line-var))
| > 	      ...)
...
| There is nothing wrong with your way (except that it won't work,
| as you've written it above! ;-)).
+---------------

Ouch! Half-done cut&paste edit.
Yes, of course, that should have been:

      	    (do ((,line-var #1=(read-line ,stream nil nil) #1#))
    		((null ,line-var))
	      ...)

+---------------
| > p.s. Christopher Rhodes spoke adequately to the other points...
| 
| Christophe must be resigned to that spelling, by now! ;-)
+---------------

*Yikes!*  I must stay after school & write 2000 times:

    "Christophe Rhodes" != "Christopher Browne"
    "Christophe Rhodes" != "Christopher Browne"
    "Christophe Rhodes" != "Christopher Browne"
    "Christophe Rhodes" != "Christopher Browne"
    ...

Apologies to all. My typos-per-posting quotient
seems to have really gone through the roof lately...
(*sigh*)


-Rob

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