Implement most of metatables

This commit is contained in:
James Roseborough
2007-06-17 02:58:40 +00:00
parent 5d3c86e552
commit 54927db2fc
6 changed files with 68 additions and 17 deletions

View File

@@ -4,7 +4,6 @@
package lua;
import lua.value.LFunction;
import lua.value.LNil;
import lua.value.LString;
import lua.value.LTable;
import lua.value.LValue;
@@ -13,7 +12,7 @@ final class Builtin extends LFunction {
static void addBuiltins(LTable table) {
for ( int i=0; i<NAMES.length; i++ )
table.luaSetTable( new LString( NAMES[i] ), new Builtin(i) );
table.m_hash.put( new LString( NAMES[i] ), new Builtin(i) );
}
private static final int PRINT = 0;