Mercurial Hosting > luan
view 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 |
line wrap: on
line source
--Io.stdout.write "this is init.luan\n" function _G.print(...) local list = {} for v in Basic.values(...) do list[#list+1] = to_string(v) list[#list+1] = '\t' end if #list == 0 then Io.stdout.write( '\n' ) else list[#list] = '\n' Io.stdout.write( Table.unpack(list) ) end end