Mercurial Hosting > luan
diff core/src/luan/impl/ForStmt.java @ 647:8e8c30b72e9b
move methods from LuanState to Luan
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 29 Mar 2016 20:39:14 -0600 |
parents | 859c0dedc8b6 |
children |
line wrap: on
line diff
--- a/core/src/luan/impl/ForStmt.java Tue Mar 29 19:58:39 2016 -0600 +++ b/core/src/luan/impl/ForStmt.java Tue Mar 29 20:39:14 2016 -0600 @@ -21,7 +21,7 @@ @Override public void eval(LuanStateImpl luan) throws LuanException { Object fnObj = iterExpr.eval(luan); try { - LuanFunction iter = luan.checkFunction(fnObj); + LuanFunction iter = Luan.checkFunction(fnObj); while(true) { Object vals = iter.call(luan); if( vals==null )