Mercurial Hosting > luan
comparison src/luan/tools/CmdLine.java @ 111:2428ecfed375
change LuanFunction.call() from returning Object[] to returning Object, to reduce garbage collection
git-svn-id: https://luan-java.googlecode.com/svn/trunk@112 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Fri, 23 May 2014 20:40:05 +0000 |
parents | 3c404a296995 |
children | e935581cf9fb |
comparison
equal
deleted
inserted
replaced
110:7afa6df829f3 | 111:2428ecfed375 |
---|---|
99 while( true ) { | 99 while( true ) { |
100 String input = console.readLine(); | 100 String input = console.readLine(); |
101 if( input==null ) | 101 if( input==null ) |
102 break; | 102 break; |
103 try { | 103 try { |
104 Object[] rtn = luan.eval(input,"stdin",true); | 104 Object[] rtn = Luan.array(luan.eval(input,"stdin",true)); |
105 if( rtn.length > 0 ) | 105 if( rtn.length > 0 ) |
106 BasicLib.print(luan,rtn); | 106 BasicLib.print(luan,rtn); |
107 } catch(LuanException e) { | 107 } catch(LuanException e) { |
108 System.out.println(e.getMessage()); | 108 System.out.println(e.getMessage()); |
109 } | 109 } |