comparison src/luan/lib/IoLib.java @ 135:3119326260ea

revert rev 125 and only preload Java git-svn-id: https://luan-java.googlecode.com/svn/trunk@136 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Wed, 11 Jun 2014 06:30:46 +0000
parents 0594c132888b
children 7e160d2f6d9c
comparison
equal deleted inserted replaced
134:b585d0915621 135:3119326260ea
31 import luan.LuanException; 31 import luan.LuanException;
32 32
33 33
34 public final class IoLib { 34 public final class IoLib {
35 35
36 public static void load(LuanState luan) throws LuanException { 36 public static final String NAME = "Io";
37 luan.load("Io",LOADER);
38 }
39 37
40 public static final LuanFunction LOADER = new LuanFunction() { 38 public static final LuanFunction LOADER = new LuanFunction() {
41 @Override public Object call(LuanState luan,Object[] args) { 39 @Override public Object call(LuanState luan,Object[] args) {
42 LuanTable module = new LuanTable(); 40 LuanTable module = new LuanTable();
43 try { 41 try {