diff options
Diffstat (limited to 'src/repl.cpp')
-rw-r--r-- | src/repl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repl.cpp b/src/repl.cpp index 65f04ef..d2b8270 100644 --- a/src/repl.cpp +++ b/src/repl.cpp @@ -149,7 +149,7 @@ eval(CEnv& cenv, const string& name, istream& is, bool execute) const AType* type = cenv.type(exprs.back()); // Create function for top-level of program - f = cenv.engine()->startFunction(cenv, "main", type, ATuple(cursor)); + f = cenv.engine()->startFunction(cenv, "main", new ATuple(cursor), type, ATuple(cursor)); // Compile expressions (other than function definitions) into it for (list<AST*>::const_iterator i = exprs.begin(); i != exprs.end(); ++i) @@ -191,7 +191,7 @@ repl(CEnv& cenv) CFunc f = NULL; try { // Create function for this repl loop - f = cenv.engine()->startFunction(cenv, replFnName, type, ATuple(cursor)); + f = cenv.engine()->startFunction(cenv, replFnName, new ATuple(cursor), type, ATuple(cursor)); cenv.engine()->finishFunction(cenv, f, ast->compile(cenv)); callPrintCollect(cenv, f, ast, type, true); if (cenv.args.find("-d") != cenv.args.end()) |