comparison core/src/luan/modules/TableLuan.java @ 411:23b99a5039b5

remove Luan.newTable()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 29 Apr 2015 16:05:02 -0600
parents 7fd9f1b7b878
children ce8e19567911
comparison
equal deleted inserted replaced
410:0d6098a29b3e 411:23b99a5039b5
79 throw (LuanException)e.getCause(); 79 throw (LuanException)e.getCause();
80 } 80 }
81 } 81 }
82 82
83 public static LuanTable pack(Object... args) { 83 public static LuanTable pack(Object... args) {
84 LuanTable tbl = Luan.newTable(); 84 LuanTable tbl = new LuanTable();
85 boolean hasNull = false; 85 boolean hasNull = false;
86 for( int i=0; i<args.length; i++ ) { 86 for( int i=0; i<args.length; i++ ) {
87 Object v = args[i]; 87 Object v = args[i];
88 if( v==null ) { 88 if( v==null ) {
89 hasNull = true; 89 hasNull = true;