Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都可以在编译和加载文件后告诉我,我们是否仍然需要在 repl 中定义函数(已经在编译和加载的文件中)才能使用它?还是还有剩余的进程,以便 repl 检测到该函数已定义?
在 lisp 中加载文件有什么意义?
谢谢。
如果文件内容已经被读入,那么,假设没有抛出错误,那么所有形式的内容都已经被执行了。如果其中之一是 DEFUN 形式,则该函数将已定义。
准确地说,检查HyperSpec 中的 LOAD 定义。