This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: supporting dynamic/interactive procedure re-definition
- From: Helmut Eller <eller dot helmut at gmail dot com>
- To: kawa at sources dot redhat dot com
- Date: Sat, 09 Oct 2010 17:09:45 +0200
- Subject: Re: supporting dynamic/interactive procedure re-definition
- References: <4C84717B.5080103@bothner.com> <m2mxqujxo2.fsf@gmail.com> <4CAFE237.90106@bothner.com>
* Per Bothner [2010-10-09 03:32] writes:
> I (re-)fixed the issue reported below.
>
> It would be good to have a test-case, but it's a bit tedious:
> I.e. the test case has to modify an existing file - which
> probably means it is best to generate both versions using
> Scheme code. A sleep might be nesssary, too - see the
> lastModifiedCacheTime variable in ModuleManager.
Slightly related question: what is the difference between
evaluating
(require "/tmp/foo.scm")
in the REPL and
(eval '(require "/tmp/foo.scm") (interaction-environment))
My expectation was that those are equivalent but that's not the case:
the latter abort with an error "cannot find module foo" while the former
loads the file as expected.
Helmut