I'm playing with a little command interpreter that does essentially
(eval (read) (interaction-environment)) at one point and found that
within the eval non-exported symbols in packages aren't successfully
resolved as they are in expressions entered in the top-level scheme48
environment, meaning that the evaluated expressions can't call
exported functions from packages that reference non-exported symbols.
1) Is this indeed the behavior of eval in scheme48 or am I mistaken,
and 2) if the former does anyone have any advice on how to go about
fixing this? I don't see why (eval x (interaction-environment)) should
have a different result than entering x in the top-level environment.
TIA,
Virgil
|