在 Chez Scheme 中重新导入一个库
Re-import a library in Chez Scheme
在 Chez 中,如何将已导入一次的库重新加载(重新导入)到 REPL 中?
When defined directly in the REPL or loaded explicitly from a file, a library form can be used to redefine an existing library, but import
never reloads a library once it has been defined.
load
和 load-library
似乎也没有重新导入。
以下序列适用于 Chez v9.5:
> (import (mylib))
;; make some changes to mylib
> (load "src/mylib.scm")
> (import (mylib))
在 Chez 中,如何将已导入一次的库重新加载(重新导入)到 REPL 中?
When defined directly in the REPL or loaded explicitly from a file, a library form can be used to redefine an existing library, but
import
never reloads a library once it has been defined.
load
和 load-library
似乎也没有重新导入。
以下序列适用于 Chez v9.5:
> (import (mylib))
;; make some changes to mylib
> (load "src/mylib.scm")
> (import (mylib))