diff core/src/luan/modules/Io.luan @ 320:fed1893821bf

remove global namespace git-svn-id: https://luan-java.googlecode.com/svn/trunk@321 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 06 Feb 2015 21:54:41 +0000
parents f6db49c294a7
children 7f7708e8fdd4
line wrap: on
line diff
--- a/core/src/luan/modules/Io.luan	Thu Feb 05 21:55:49 2015 +0000
+++ b/core/src/luan/modules/Io.luan	Fri Feb 06 21:54:41 2015 +0000
@@ -1,4 +1,4 @@
-java()
+java
 import "java:luan.modules.IoLuan"
 import "java:java.lang.System"
 
@@ -11,10 +11,11 @@
 stderr = IoLuan.textWriter(System.err)
 
 
-import "luan:Package"
 import "luan:Luan"
 import "luan:Table"
 
+local to_string = Luan.to_string
+
 function print_to(out,...)
 	local list = {}
 	for _,v in Luan.values(...) do
@@ -29,7 +30,6 @@
 	end
 end
 
-function Luan.print(...)
+function print(...)
 	print_to(stdout,...)
 end
-Package.global(Luan,"print")