Mercurial Hosting > luan
comparison src/luan/init.luan @ 116:1ff1c32417eb
more IoLib work and added init.luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@117 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 30 May 2014 04:55:37 +0000 |
parents | |
children | 735708619119 |
comparison
equal
deleted
inserted
replaced
115:eacf6ce1b47d | 116:1ff1c32417eb |
---|---|
1 --Io.stdout.write "this is init.luan\n" | |
2 | |
3 function _G.print(...) | |
4 local list = {} | |
5 for v in Basic.values(...) do | |
6 list[#list+1] = to_string(v) | |
7 list[#list+1] = '\t' | |
8 end | |
9 if #list == 0 then | |
10 Io.stdout.write( '\n' ) | |
11 else | |
12 list[#list] = '\n' | |
13 Io.stdout.write( Table.unpack(list) ) | |
14 end | |
15 end |