Fix basic class processing via metatables. Make print output more closely match that produces by C interpreter
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user