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

@@ -9,6 +9,10 @@ public class LValue {
protected static LValue luaUnsupportedOperation() {
throw new java.lang.UnsupportedOperationException();
}
public String id() {
return Integer.toHexString(hashCode());
}
// test if value is true
public boolean luaAsBoolean() {