【发布时间】:2020-05-28 15:00:12
【问题描述】:
我有这个文件名为myprog.scm:
(error "Not found!")
使用plt-r5rs myprog.scm 运行程序会报错:
error: undefined;
cannot reference undefined identifier
context...:
/usr/share/racket/pkgs/r5rs-lib/r5rs/run.rkt: [running body]
显然,plt-r5rs 没有定义 error 过程。
- 为什么
plt-r5rs的作者没有定义error过程? - 如何定义或导入
error过程以便我的程序可以运行?也许有办法导入SRFI-23 Error reporting mechanism?
【问题讨论】: