Add new built-in function type() that returns the name of the type of

the given value as a string. Includes test case.
This commit is contained in:
Ian Farmer
2007-07-16 02:37:08 +00:00
parent c65dec54fb
commit 635f127cd0
14 changed files with 69 additions and 11 deletions

View File

@@ -1,5 +1,10 @@
package lua.value;
public class LThread extends LValue {
public static final LString TYPE_NAME = new LString("thread");
public LString luaGetType() {
return TYPE_NAME;
}
}