Mercurial Hosting > luan
comparison core/src/luan/modules/BasicLuan.java @ 427:dae264ad6a7b
fix LuanTable.put() to use metatables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 01 May 2015 19:29:07 -0600 |
parents | 23a93c118042 |
children | d9df6d6cb927 |
comparison
equal
deleted
inserted
replaced
426:23a93c118042 | 427:dae264ad6a7b |
---|---|
108 public static Object raw_get(LuanTable table,Object index) { | 108 public static Object raw_get(LuanTable table,Object index) { |
109 return table.rawGet(index); | 109 return table.rawGet(index); |
110 } | 110 } |
111 | 111 |
112 public static LuanTable raw_set(LuanTable table,Object index,Object value) { | 112 public static LuanTable raw_set(LuanTable table,Object index,Object value) { |
113 table.put(index,value); | 113 table.rawPut(index,value); |
114 return table; | 114 return table; |
115 } | 115 } |
116 | 116 |
117 public static int raw_len(LuanState luan,Object v) throws LuanException { | 117 public static int raw_len(LuanState luan,Object v) throws LuanException { |
118 if( v instanceof String ) { | 118 if( v instanceof String ) { |