Exception handling for common lisp package enumeration

南楼画角 提交于 2019-12-11 07:59:39

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!