changeset 85:b2551f00bc51

fix type() git-svn-id: https://luan-java.googlecode.com/svn/trunk@86 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 25 Feb 2013 03:53:54 +0000
parents cca4f8522893
children 6db8f286fa6c
files src/luan/Luan.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r cca4f8522893 -r b2551f00bc51 src/luan/Luan.java
--- a/src/luan/Luan.java	Mon Feb 18 23:15:14 2013 +0000
+++ b/src/luan/Luan.java	Mon Feb 25 03:53:54 2013 +0000
@@ -13,6 +13,10 @@
 			return "boolean";
 		if( obj instanceof Number )
 			return "number";
+		if( obj instanceof LuanTable )
+			return "table";
+		if( obj instanceof LuanFunction )
+			return "function";
 		return "userdata";
 	}