Fix basic class processing via metatables. Make print output more closely match that produces by C interpreter

This commit is contained in:
James Roseborough
2007-06-19 04:25:34 +00:00
parent 54927db2fc
commit 99077764ac
9 changed files with 69 additions and 12 deletions

View File

@@ -1,9 +1,10 @@
package lua.io;
import lua.StackState;
import lua.value.LFunction;
import lua.value.LValue;
public class Closure extends LValue {
public class Closure extends LFunction {
public LValue env;
public Proto p;
public UpVal[] upVals;
@@ -19,8 +20,4 @@ public class Closure extends LValue {
public void luaStackCall(StackState state, int base, int top, int nresults) {
state.setupCall( this, base, top );
}
public String toString() {
return "closure: "+hashCode();
}
}