xo-expression: generalize envframestack + handle explicit lm retturn
This commit is contained in:
parent
483ce15988
commit
5c7b756bd1
15 changed files with 112 additions and 74 deletions
|
|
@ -16,9 +16,17 @@ namespace xo {
|
|||
bp<Expression> expr)
|
||||
{
|
||||
this->global_map_[vname] = expr.get();
|
||||
|
||||
return expr;
|
||||
} /*require_global*/
|
||||
|
||||
void
|
||||
GlobalEnv::upsert_local(bp<Variable> target) {
|
||||
// in practice: paraphrase of .require_global()
|
||||
|
||||
this->global_map_[target->name()] = target.promote();
|
||||
}
|
||||
|
||||
void
|
||||
GlobalEnv::print(std::ostream & os) const {
|
||||
os << "<GlobalEnv"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue