comparison src/luan/modules/TableLuan.java @ 796:6b8ea0a9b7c9

remove LuanMeta
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 05 Sep 2016 19:52:49 -0600
parents 1a68fc55a80c
children 2443152dc2f1
comparison
equal deleted inserted replaced
795:dd36eae6aa04 796:6b8ea0a9b7c9
9 import luan.LuanTable; 9 import luan.LuanTable;
10 import luan.LuanFunction; 10 import luan.LuanFunction;
11 import luan.LuanException; 11 import luan.LuanException;
12 import luan.LuanRuntimeException; 12 import luan.LuanRuntimeException;
13 import luan.LuanMethod; 13 import luan.LuanMethod;
14 import luan.LuanPropertyMeta;
15 14
16 15
17 public final class TableLuan { 16 public final class TableLuan {
18 17
19 public static String concat(LuanState luan,LuanTable list,String sep,Integer i,Integer j) throws LuanException { 18 public static String concat(LuanState luan,LuanTable list,String sep,Integer i,Integer j) throws LuanException {
107 if( to == null ) 106 if( to == null )
108 to = list.rawLength(); 107 to = list.rawLength();
109 return list.rawSubList(from,to); 108 return list.rawSubList(from,to);
110 } 109 }
111 110
112 public static LuanTable new_property_table() {
113 return LuanPropertyMeta.INSTANCE.newTable();
114 }
115
116 public static void clear(LuanTable tbl) { 111 public static void clear(LuanTable tbl) {
117 tbl.rawClear(); 112 tbl.rawClear();
118 } 113 }
119 114
120 } 115 }