From: Hoehle, Joerg-C. <Joe...@t-...> - 2004-10-14 07:57:02
|
Hi, did you ever wish for LOAD not to abort upon encountering the first error while loading the file? To continue processign the remaining forms in the file instead? Since both .lisp and .fas files are a successions of sexp [(loop (eval (read))], there could be a SKIP restart instead of solely the ABORT one, so as to be able to continue with the next form in the file. In my firewall log-file analysis application, I provided two restarts when parsing .cvs files: one to stop processing this .csv file, and one to skip to the next line. What I propose here is the equivalent of the latter for LOAD. What do people think? [I tend to write feature requests here instead of sourceforge, so clisp-users can comment on them.] Another approach would be a RETURN-FROM command in the debugger, to allow to shortcut the execution of a function currently on the stack with a given value. IIRC, CMUCL has this feature. CLISP only has it for EVAL frames, which are rare in compiled code. In my logfile analysis application, I had somehow arranged for the restarts to have negligible impact on performance (hmm, maybe I finally used continuable errors instead). Regards, Jorg Hohle. |