xo-expression: + Lambda::nested_lambda_map

This commit is contained in:
Roland Conybeare 2024-07-03 16:20:18 -04:00
commit 4b0a2cff2a
5 changed files with 31 additions and 5 deletions

View file

@ -8,7 +8,11 @@ namespace xo {
void
Variable::attach_envs(ref::brw<Environment> e) {
/** e makes accessible all enclosing lexical scopes **/
this->path_ = e->lookup_binding(this->name_);
if (this->path_.i_link_ == -2 /*sentinel*/) {
this->path_ = e->lookup_binding(this->name_);
} else {
/* have already established binding for this Variable */
}
} /*attach_envs*/
void