Mercurial Hosting > luan
comparison core/src/luan/modules/Io.luan @ 321:7f7708e8fdd4
remove import statement
git-svn-id: https://luan-java.googlecode.com/svn/trunk@322 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Sun, 08 Feb 2015 07:26:20 +0000 |
parents | fed1893821bf |
children | 8668f3799ad9 |
comparison
equal
deleted
inserted
replaced
320:fed1893821bf | 321:7f7708e8fdd4 |
---|---|
1 java | 1 java() |
2 import "java:luan.modules.IoLuan" | 2 local IoLuan = require "java:luan.modules.IoLuan" |
3 import "java:java.lang.System" | 3 local System = require "java:java.lang.System" |
4 | 4 |
5 read_console_line = IoLuan.read_console_line | 5 read_console_line = IoLuan.read_console_line |
6 schemes = IoLuan.newSchemes() | 6 schemes = IoLuan.newSchemes() |
7 Uri = IoLuan.Uri | 7 Uri = IoLuan.Uri |
8 stdin = IoLuan.defaultStdin.table() | 8 stdin = IoLuan.defaultStdin.table() |
9 socket_server = IoLuan.socket_server | 9 socket_server = IoLuan.socket_server |
10 stdout = IoLuan.textWriter(System.out) | 10 stdout = IoLuan.textWriter(System.out) |
11 stderr = IoLuan.textWriter(System.err) | 11 stderr = IoLuan.textWriter(System.err) |
12 | 12 |
13 | 13 |
14 import "luan:Luan" | 14 local Luan = require "luan:Luan" |
15 import "luan:Table" | |
16 | |
17 local to_string = Luan.to_string | 15 local to_string = Luan.to_string |
16 local Table = require "luan:Table" | |
18 | 17 |
19 function print_to(out,...) | 18 function print_to(out,...) |
20 local list = {} | 19 local list = {} |
21 for _,v in Luan.values(...) do | 20 for _,v in Luan.values(...) do |
22 list[#list+1] = to_string(v) | 21 list[#list+1] = to_string(v) |