[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's the current-module during gh_eval_str?
From: |
Marius Vollmer |
Subject: |
Re: What's the current-module during gh_eval_str? |
Date: |
26 Sep 2001 01:14:24 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.102 |
Rob Browning <address@hidden> writes:
> How is that determined?
The current module is the module returned by `(current-module)'. It
can be set using `(set-current-module MODULE)', for example.
The current module is saved/restored in `scm_eval_string' (which is
what gh_eval_str will be replaced with), so any calls to
`set-current-module' done from the code in the string have no effect
beyond the call to scm_eval_string.
> For example, what happens if you gh_eval_str from within a function
> that's been published from within a module via dynamic-call and
> gh_new_procedure?
The module that contains the definition of a function has nothing to
do with the module that is the current one when that functions calls
`eval'.