aboutsummaryrefslogtreecommitdiffstats
path: root/src/lift.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-10-14 00:27:15 +0000
committerDavid Robillard <d@drobilla.net>2010-10-14 00:27:15 +0000
commitf649096bc715541c6b861f13c6710eda970b78ce (patch)
tree1156e75f8e8da75d6ac798ef8f1057985efa9f79 /src/lift.cpp
parent0faa00e9dfd221016ad26b5629617949fcce4676 (diff)
downloadresp-f649096bc715541c6b861f13c6710eda970b78ce.tar.gz
resp-f649096bc715541c6b861f13c6710eda970b78ce.tar.bz2
resp-f649096bc715541c6b861f13c6710eda970b78ce.zip
Prefix internal "me" parameter with underscore.
git-svn-id: http://svn.drobilla.net/resp/resp@271 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/lift.cpp')
-rw-r--r--src/lift.cpp8
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*>()) {