|
From: | Andy Wingo |
Subject: | Re: primitive eval with module => Unbound variable? |
Date: | Mon, 22 May 2017 21:48:13 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
More concretely... you think in your examples that because you see (current-module) in the (foo) module that (current-module) will be (foo). That is a lexical assumption. It's usually what you want. But current-module isn't lexically scoped -- it's dynamically scoped. Its value comes from the continuation that invokes the call, not the environment in which the expression appears. Andy
[Prev in Thread] | Current Thread | [Next in Thread] |