Mercurial Hosting > luan
diff core/src/luan/modules/MathLuan.java @ 221:ec016471c6eb
make LuanTable an interface
git-svn-id: https://luan-java.googlecode.com/svn/trunk@222 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 17 Jul 2014 07:49:26 +0000 |
parents | 3dcb0f9bee82 |
children | 0a8e6fdb62f0 |
line wrap: on
line diff
--- a/core/src/luan/modules/MathLuan.java Wed Jul 16 04:59:45 2014 +0000 +++ b/core/src/luan/modules/MathLuan.java Thu Jul 17 07:49:26 2014 +0000 @@ -1,5 +1,6 @@ package luan.modules; +import luan.Luan; import luan.LuanState; import luan.LuanTable; import luan.LuanFunction; @@ -11,7 +12,7 @@ public static final LuanFunction LOADER = new LuanFunction() { @Override public Object call(LuanState luan,Object[] args) { - LuanTable module = new LuanTable(); + LuanTable module = Luan.newTable(); try { add( module, "abs", Double.TYPE ); add( module, "acos", Double.TYPE );