Mercurial Hosting > luan
changeset 105:a9560839104d
minor - change type names to lower case like Lua
git-svn-id: https://luan-java.googlecode.com/svn/trunk@106 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 13 May 2014 06:03:09 +0000 |
parents | 754e6030c029 |
children | 1a29dd3888f6 |
files | src/luan/Luan.java |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/luan/Luan.java Mon May 12 05:57:53 2014 +0000 +++ b/src/luan/Luan.java Tue May 13 06:03:09 2014 +0000 @@ -6,18 +6,18 @@ public static String type(Object obj) { if( obj == null ) - return "Nil"; + return "nil"; if( obj instanceof String ) - return "String"; + return "string"; if( obj instanceof Boolean ) - return "Boolean"; + return "boolean"; if( obj instanceof Number ) - return "Number"; + return "number"; if( obj instanceof LuanTable ) - return "Table"; + return "table"; if( obj instanceof LuanFunction ) - return "Function"; - return "Userdata"; + return "function"; + return "userdata"; } public static boolean toBoolean(Object obj) {