(require* mod) can wrap the remainder of the file in a different #%module-begin.
The behaviour should be similar at the REPL, so that (require* mod) alters the REPL so that later lines are read and evaluated by the freshly-loaded mod.
IIUC, this means require* has to replace the REPL reader (using a parameter?), and shadow the old #%top-interaction.
(require* mod)
can wrap the remainder of the file in a different#%module-begin
.The behaviour should be similar at the REPL, so that
(require* mod)
alters the REPL so that later lines are read and evaluated by the freshly-loadedmod
.IIUC, this means
require*
has to replace the REPL reader (using a parameter?), and shadow the old#%top-interaction
.