From ... From: Erik Naggum Subject: Re: eof in Common Lisp Date: 1998/03/07 Message-ID: <3098298853739382@naggum.no>#1/1 X-Deja-AN: 331801720 References: <6dsg64$mg8$1@Masala.CC.UH.EDU> mail-copies-to: never Organization: Naggum Software; +47 8800 8879; http://www.naggum.no Newsgroups: comp.lang.lisp * 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.