2

In Chez, how do I reload (re-import) a library into the REPL that I've already imported once?

The Chez Scheme User's Guide says:

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 and load-library don't seem to re-import either.

Lassi
  • 3,522
  • 3
  • 22
  • 34

1 Answers1

2

The following sequence works for me in Chez v9.5:

> (import (mylib))
;; make some changes to mylib
> (load "src/mylib.scm")
> (import (mylib))
c_spk
  • 169
  • 16