Mercurial Hosting > luan
diff src/luan/modules/TableLuan.java @ 1420:225808b90cee
options handling
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 26 Oct 2019 22:21:09 -0600 |
parents | e0cf0d108a77 |
children | b89212fd04b5 |
line wrap: on
line diff
--- a/src/luan/modules/TableLuan.java Fri Oct 25 22:12:06 2019 -0600 +++ b/src/luan/modules/TableLuan.java Sat Oct 26 22:21:09 2019 -0600 @@ -39,7 +39,7 @@ public static Object remove(LuanTable list,int pos) throws LuanException { if( list.getMetatable() != null ) throw new LuanException("can't remove from a table with a metatable"); - return list.rawRemove(pos); + return list.removeFromList(pos); } private static interface LessThan { @@ -121,7 +121,7 @@ } public static boolean is_empty(LuanTable tbl) throws LuanException { - return tbl.rawIsEmpty(); + return tbl.isEmpty(); } public static int size(LuanTable tbl) throws LuanException {