diff options
Diffstat (limited to 'src/lift.cpp')
-rw-r--r-- | src/lift.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lift.cpp b/src/lift.cpp index 939d529..b2ead08 100644 --- a/src/lift.cpp +++ b/src/lift.cpp @@ -31,7 +31,7 @@ AST* ASymbol::lift(CEnv& cenv, Code& code) throw() { if (!cenv.liftStack.empty() && cppstr == cenv.liftStack.top().fn->name) { - return cenv.penv.sym("me"); // Reference to innermost function + return cenv.penv.sym("_me"); // Reference to innermost function } else if (!cenv.penv.handler(true, cppstr) && !cenv.penv.handler(false, cppstr) && !cenv.code.innermost(this)) { @@ -40,7 +40,7 @@ ASymbol::lift(CEnv& cenv, Code& code) throw() // Replace symbol with code to access free variable from closure return tup<ADot>(loc, cenv.penv.sym("."), - cenv.penv.sym("me"), + cenv.penv.sym("_me"), new ALiteral<int32_t>(index, Cursor()), NULL); } else { @@ -109,7 +109,7 @@ AFn::lift(CEnv& cenv, Code& code) throw() cenv.pop(); // Set name of closure parameter to "me" - *impl->prot()->begin() = cenv.penv.sym("me"); + *impl->prot()->begin() = cenv.penv.sym("_me"); // Create definition for implementation fn ASymbol* implName = cenv.penv.sym(impl->name); @@ -157,7 +157,7 @@ ACall::lift(CEnv& cenv, Code& code) throw() ASymbol* sym = head()->to<ASymbol*>(); if (sym && !cenv.liftStack.empty() && sym->cppstr == cenv.liftStack.top().fn->name) { /* Recursive call to innermost function, call implementation directly, - * reusing the current "me" closure parameter (no cons or .). + * reusing the current "_me" closure parameter (no cons or .). */ copy->push_front(cenv.penv.sym(cenv.liftStack.top().implName)); } else if (head()->to<AFn*>()) { |