Subject: Re: eof in Common Lisp From: Erik Naggum <clerik@naggum.no> Date: 1998/03/07 Newsgroups: comp.lang.lisp Message-ID: <3098298853739382@naggum.no> * wanker@exploited.barmy.army | From what I read, to detect eof in lisp when using read, one uses the | keyword parameters like eof-error-p and eof-value. ^^^^^^^ where did you read that? | Would someone be kind enough to provide me with an example of how to use | this feature properly? try (KERNEL:%FUNCTION-ARGLIST #'READ) in CMUCL, check the HyperSpec or look more close in whatever textbook you're using. note that even if EOF-ERROR-P is false, an error is caused if RECURSIVE-P is true, i.e., the EOF-VALUE argument is returned only if the end of file occurs at top-level. if you want to be certain that you do not detect end of file prematurely, pass a guaranteed unique value as EOF-VALUE, such as a fresh, uninterned symbol, a fresh cons cell, or somesuch. #:Erik -- God grant me serenity to accept the code I cannot change, courage to change the code I can, and wisdom to know the difference.