常见的lisp包枚举异常处理 [英] Exception handling for common lisp package enumeration

查看:142
本文介绍了常见的lisp包枚举异常处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以运行这个lisp代码来获取common-lisp-user包中的所有符号:

So running this lisp code to get all symbols in the common-lisp-user package:

(do-symbols(sym'common-lisp-user) print sym))

(do-symbols (sym 'common-lisp-user) (print sym))

我收到这个错误:

* - 打印:字符#\\\Р不能在字符集CHARSET中表示:CP437

* - PRINT: Character #\u0420 cannot be represented in the character set CHARSET:CP437

我对Common Lisp中的异常处理不太熟悉。我已经尝试过处理程序,重新启动等等,但是我还没有能够捕获错误,然后继续执行。

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,这是运行GNU CLISP 2.49的Windows机器。

FYI, this is on a windows machine running GNU CLISP 2.49.

推荐答案

(IGNORE-ERRORS(some-form)) ??

这篇关于常见的lisp包枚举异常处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆