Hi,

This is as intended.

Do you have a rationale for this intention?  I have been thinking
about this for weeks now, and I still cannot come up with a scenario
when I would like this behaviour.  That is if I'd load a lua-on-guile
REPL, I wouldn't like to have Lua symbols missing and Scheme symbols
present.

I had a look at the guile codebase proposed a patch that would unify
the behaviour of REPL and script execution:

https://lists.gnu.org/archive/html/guile-devel/2020-11/msg00004.html

---
Holger Peters <holger.pet...@posteo.de>

Am 07.11.2020 21:59 schrieb Dr. Arne Babenhauserheide:
holger.pet...@posteo.de writes:
It seems that in the REPL, Guile injects the `guile-user' module
directly whereas when called with `-s` and a script guile uses the
module provided with `#:make-default-environment'.  That seems strange
because overall I would expect REPL environments and non-REPL
environments to be roughly the same.

So, is this a bug? Works as intended? And if this is intended in this
way is there a workaround to make REPL and script exeution to behave
the same (preferably without namespace `pollution').



Best wishes,
Arne

Reply via email to