aboutsummaryrefslogtreecommitdiffstats
path: root/src/repl.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-08 19:07:09 +0000
committerDavid Robillard <d@drobilla.net>2010-12-08 19:07:09 +0000
commitd02fe43f0f6e50f8f22321aa0080283ee2ecc9fc (patch)
tree2a2007137d19221a541e97764dc3adef054f6581 /src/repl.cpp
parent583a2d9d2397ff174b16d7df377f16c1df6fe875 (diff)
downloadresp-d02fe43f0f6e50f8f22321aa0080283ee2ecc9fc.tar.gz
resp-d02fe43f0f6e50f8f22321aa0080283ee2ecc9fc.tar.bz2
resp-d02fe43f0f6e50f8f22321aa0080283ee2ecc9fc.zip
Clean up function compilation stuff.
Add some utilities to for using named types. git-svn-id: http://svn.drobilla.net/resp/resp@313 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/repl.cpp')
-rw-r--r--src/repl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repl.cpp b/src/repl.cpp
index 965e202..247799b 100644
--- a/src/repl.cpp
+++ b/src/repl.cpp
@@ -57,7 +57,7 @@ readParseType(CEnv& cenv, Cursor& cursor, istream& is, AST*& exp, const AST*& as
//cout << "(SUBST " << endl << subst << ")" << endl;
//cout << "(TSUBST " << endl << cenv.tsubst << ")" << endl;
- //cenv.tsubst = Subst::compose(cenv.tsubst, subst);
+ cenv.tsubst = Subst::compose(cenv.tsubst, subst); // FIXME: breaks polymorphism + repl
Object::pool.addRoot(ast); // Make parsed expression a GC root so it is not deleted
@@ -133,7 +133,7 @@ eval(CEnv& cenv, Cursor& cursor, istream& is, bool execute)
// Create function for top-level of program
f = cenv.engine()->startFunction(cenv, "main", new ATuple(cursor), fnT);
-
+
// Compile expressions (other than function definitions) into it
for (Code::const_iterator i = exprs.begin(); i != exprs.end(); ++i)
val = resp_compile(cenv, *i);