On Thu, Aug 17, 2023 at 02:46:24AM +0200, Imsieke, Gerrit, le-tex scripsit:
On 17.08.2023 02:40, Graydon wrote:
The thing that has me croggled is that the dynamically evaluated expression is in the module being imported, where it is bound to a public variable in the module namespace.
That may be true, but if you are referring to it in the evaluated expression by its signature, this signature won’t be known – unless you import the module in the expression.
Which implies that perhaps at import time in xquery:eval ONLY those variables and functions which are referenced in the evaluated expression are resolved from the imported module, which explains why the variable (which isn't referenced in the eval) doesn't cause an infinite loop.
Thank you! I feel less confused.
-- Graydon