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

@@ -2,6 +2,7 @@ package lua;
import java.util.Hashtable;
import lua.value.LString;
import lua.value.LTable;
import lua.value.LValue;
@@ -44,6 +45,7 @@ public class GlobalState {
public static LValue getGlobalsTable() {
LTable table = new LTable();
Builtin.addBuiltins( table );
table.m_hash.put(new LString("_G"), table);
return table;
}
}