问题
So running this lisp code to get all symbols in the common-lisp-user package:
(do-symbols (sym 'common-lisp-user) (print sym))
I get this error:
* - PRINT: Character #\u0420 cannot be represented in the character set CHARSET:CP437
I'm not extremely familiar with exception handling in Common Lisp. I've tried handler-case, and restarts, etc, but I haven't yet been able to trap the error and then just carry on.
Any help with this would be appreciated.
FYI, this is on a windows machine running GNU CLISP 2.49.
回答1:
How about (IGNORE-ERRORS (some-form))
??
来源:https://stackoverflow.com/questions/6143418/exception-handling-for-common-lisp-package-enumeration