changeset 278:4a0a84c38617

don't expose Package.load_lib() git-svn-id: https://luan-java.googlecode.com/svn/trunk@279 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Sun, 23 Nov 2014 02:42:29 +0000
parents 8ac3eaf8ecd9
children 8b738caea941
files core/src/luan/modules/PackageLuan.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/src/luan/modules/PackageLuan.java	Fri Nov 21 05:39:46 2014 +0000
+++ b/core/src/luan/modules/PackageLuan.java	Sun Nov 23 02:42:29 2014 +0000
@@ -22,7 +22,7 @@
 			try {
 				module.put("require",requireFn);
 				add( module, "load", LuanState.class, String.class );
-				add( module, "load_lib", LuanState.class, String.class );
+//				add( module, "load_lib", LuanState.class, String.class );
 				add( module, "search", LuanState.class, String.class );
 			} catch(NoSuchMethodException e) {
 				throw new RuntimeException(e);
@@ -99,7 +99,7 @@
 	}
 
 
-	public static LuanFunction load_lib(LuanState luan,String path)
+	static LuanFunction load_lib(LuanState luan,String path)
 		throws ClassNotFoundException, NoSuchFieldException, IllegalAccessException, LuanException
 	{
 		int i = path.lastIndexOf('.');