diff src/luan/lib/TableLib.java @ 130:0594c132888b

cleanup git-svn-id: https://luan-java.googlecode.com/svn/trunk@131 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Tue, 10 Jun 2014 02:43:40 +0000
parents f537ff5e511d
children 3119326260ea
line wrap: on
line diff
--- a/src/luan/lib/TableLib.java	Mon Jun 09 09:16:16 2014 +0000
+++ b/src/luan/lib/TableLib.java	Tue Jun 10 02:43:40 2014 +0000
@@ -54,7 +54,7 @@
 				buf.append(sep);
 			String s = Luan.asString(val);
 			if( s==null )
-				throw luan.JAVA.exception( "invalid value ("+Luan.type(val)+") at index "+k+" in table for 'concat'" );
+				throw luan.exception( "invalid value ("+Luan.type(val)+") at index "+k+" in table for 'concat'" );
 			buf.append(val);
 		}
 		return buf.toString();
@@ -64,7 +64,7 @@
 		try {
 			list.insert(pos,value);
 		} catch(IndexOutOfBoundsException e) {
-			throw luan.JAVA.exception(e);
+			throw luan.exception(e);
 		}
 	}
 
@@ -72,7 +72,7 @@
 		try {
 			return list.remove(pos);
 		} catch(IndexOutOfBoundsException e) {
-			throw luan.JAVA.exception(e);
+			throw luan.exception(e);
 		}
 	}
 
@@ -86,7 +86,7 @@
 			lt = new LessThan() {
 				public boolean isLessThan(Object o1,Object o2) {
 					try {
-						return luan.JAVA.isLessThan(o1,o2);
+						return luan.isLessThan(o1,o2);
 					} catch(LuanException e) {
 						throw new LuanRuntimeException(e);
 					}
@@ -96,7 +96,7 @@
 			lt = new LessThan() {
 				public boolean isLessThan(Object o1,Object o2) {
 					try {
-						return Luan.toBoolean(Luan.first(luan.JAVA.call(comp,"comp-arg",new Object[]{o1,o2})));
+						return Luan.toBoolean(Luan.first(luan.call(comp,"comp-arg",new Object[]{o1,o2})));
 					} catch(LuanException e) {
 						throw new LuanRuntimeException(e);
 					}