I have this file named myprog.scm
:
(error "Not found!")
Running the program using plt-r5rs myprog.scm
gives an error:
error: undefined;
cannot reference undefined identifier
context...:
/usr/share/racket/pkgs/r5rs-lib/r5rs/run.rkt: [running body]
Apparently, plt-r5rs
does not define the error
procedure.
- Why did the authors of
plt-r5rs
not define theerror
procedure? - How can I define or import an
error
procedure so that my program can run? Perhaps there's a way to import SRFI-23 Error reporting mechanism?